@@ -98,7 +98,7 @@ pub fn testnet_config_compiled() -> Result<SubspaceChainSpec, String> {
9898 AccountId :: from_ss58check ( "5CXTmJEusve5ixyJufqHThmy4qUrrm6FyLCR7QfE4bbyMTNC" )
9999 . expect ( "Wrong root account address" ) ;
100100
101- let mut balances = vec ! [ ] ;
101+ let mut balances = vec ! [ ( sudo_account . clone ( ) , 1_000 * SSC ) ] ;
102102 let vesting_schedules = TOKEN_GRANTS
103103 . iter ( )
104104 . flat_map ( |& ( account_address, amount) | {
@@ -169,6 +169,11 @@ pub fn testnet_config_compiled() -> Result<SubspaceChainSpec, String> {
169169}
170170
171171pub fn dev_config ( ) -> Result < SubspaceChainSpec , String > {
172+ let mut properties = Properties :: new ( ) ;
173+ properties. insert ( "ss58Format" . into ( ) , <SS58Prefix as Get < u16 > >:: get ( ) . into ( ) ) ;
174+ properties. insert ( "tokenDecimals" . into ( ) , DECIMAL_PLACES . into ( ) ) ;
175+ properties. insert ( "tokenSymbol" . into ( ) , "tSSC" . into ( ) ) ;
176+
172177 let wasm_binary = WASM_BINARY . ok_or_else ( || "Development wasm not available" . to_string ( ) ) ?;
173178
174179 Ok ( SubspaceChainSpec :: from_genesis (
@@ -204,13 +209,18 @@ pub fn dev_config() -> Result<SubspaceChainSpec, String> {
204209 None ,
205210 None ,
206211 // Properties
207- None ,
212+ Some ( properties ) ,
208213 // Extensions
209214 None ,
210215 ) )
211216}
212217
213218pub fn local_config ( ) -> Result < SubspaceChainSpec , String > {
219+ let mut properties = Properties :: new ( ) ;
220+ properties. insert ( "ss58Format" . into ( ) , <SS58Prefix as Get < u16 > >:: get ( ) . into ( ) ) ;
221+ properties. insert ( "tokenDecimals" . into ( ) , DECIMAL_PLACES . into ( ) ) ;
222+ properties. insert ( "tokenSymbol" . into ( ) , "tSSC" . into ( ) ) ;
223+
214224 let wasm_binary = WASM_BINARY . ok_or_else ( || "Development wasm not available" . to_string ( ) ) ?;
215225
216226 Ok ( SubspaceChainSpec :: from_genesis (
@@ -254,7 +264,7 @@ pub fn local_config() -> Result<SubspaceChainSpec, String> {
254264 None ,
255265 None ,
256266 // Properties
257- None ,
267+ Some ( properties ) ,
258268 // Extensions
259269 None ,
260270 ) )
0 commit comments