@@ -20,16 +20,16 @@ use crate::chain_spec_utils::{chain_spec_properties, get_public_key_from_seed};
20
20
use crate :: domain:: cli:: { GenesisDomain , GenesisOperatorParams , SpecId } ;
21
21
use domain_runtime_primitives:: { AccountId20Converter , MultiAccountId } ;
22
22
use evm_domain_runtime:: {
23
- AccountId , BalancesConfig , EVMChainIdConfig , EVMConfig , Precompiles , RuntimeGenesisConfig ,
24
- SystemConfig , WASM_BINARY ,
23
+ AccountId , BalancesConfig , EVMChainIdConfig , EVMConfig , EVMNoncetrackerConfig , Precompiles ,
24
+ RuntimeGenesisConfig , SystemConfig , WASM_BINARY ,
25
25
} ;
26
26
use hex_literal:: hex;
27
27
use parity_scale_codec:: Encode ;
28
28
use sc_chain_spec:: GenericChainSpec ;
29
29
use sc_service:: ChainType ;
30
30
use sp_core:: crypto:: UncheckedFrom ;
31
31
use sp_domains:: storage:: RawGenesis ;
32
- use sp_domains:: { OperatorAllowList , OperatorPublicKey , RuntimeType } ;
32
+ use sp_domains:: { OperatorAllowList , OperatorPublicKey , PermissionedActionAllowedBy , RuntimeType } ;
33
33
use sp_runtime:: traits:: Convert ;
34
34
use sp_runtime:: BuildStorage ;
35
35
use std:: collections:: BTreeSet ;
@@ -165,6 +165,11 @@ fn testnet_genesis() -> RuntimeGenesisConfig {
165
165
. collect ( ) ,
166
166
..Default :: default ( )
167
167
} ,
168
+ evm_noncetracker : EVMNoncetrackerConfig {
169
+ // Allow anyone to create contracts on the public EVM domain.
170
+ // (For the private EVM domain, use the domain sudo account here.)
171
+ contract_creation_allowed_by : PermissionedActionAllowedBy :: Anyone ,
172
+ } ,
168
173
..Default :: default ( )
169
174
}
170
175
}
0 commit comments