@@ -6,15 +6,15 @@ pub type ChainSpec = sc_service::GenericChainSpec<RuntimeGenesisConfig>;
6
6
fn props ( ) -> Properties {
7
7
let mut properties = Properties :: new ( ) ;
8
8
properties. insert ( "tokenDecimals" . to_string ( ) , 0 . into ( ) ) ;
9
- properties. insert ( "tokenSymbol" . to_string ( ) , "TEST " . into ( ) ) ;
9
+ properties. insert ( "tokenSymbol" . to_string ( ) , "UNIT " . into ( ) ) ;
10
10
properties
11
11
}
12
12
13
13
pub fn development_config ( ) -> Result < ChainSpec , String > {
14
14
let wasm_binary = WASM_BINARY . ok_or_else ( || "Development wasm not available" . to_string ( ) ) ?;
15
15
Ok ( ChainSpec :: from_genesis (
16
- "Development" ,
17
- "dev" ,
16
+ "Polkadot-SDK-Tutorial- Development" ,
17
+ "pst- dev" ,
18
18
ChainType :: Development ,
19
19
move || testnet_genesis ( wasm_binary) ,
20
20
vec ! [ ] ,
@@ -26,30 +26,10 @@ pub fn development_config() -> Result<ChainSpec, String> {
26
26
) )
27
27
}
28
28
29
- pub fn local_testnet_config ( ) -> Result < ChainSpec , String > {
30
- let wasm_binary = WASM_BINARY . ok_or_else ( || "Development wasm not available" . to_string ( ) ) ?;
31
-
32
- Ok ( ChainSpec :: from_genesis (
33
- "Local Testnet" ,
34
- "local_testnet" ,
35
- ChainType :: Local ,
36
- move || testnet_genesis ( wasm_binary) ,
37
- vec ! [ ] ,
38
- None ,
39
- None ,
40
- None ,
41
- Some ( props ( ) ) ,
42
- None ,
43
- ) )
44
- }
45
-
46
29
/// Configure initial storage state for FRAME modules.
47
30
fn testnet_genesis ( wasm_binary : & [ u8 ] ) -> RuntimeGenesisConfig {
48
31
RuntimeGenesisConfig {
49
- system : SystemConfig {
50
- // Add Wasm runtime to storage.
51
- code : wasm_binary. to_vec ( ) ,
52
- } ,
32
+ system : SystemConfig { code : wasm_binary. to_vec ( ) } ,
53
33
..Default :: default ( )
54
34
}
55
35
}
0 commit comments