Skip to content

Commit 377d0da

Browse files
committed
Allow anyone to create contracts on the default EVM domain
1 parent a6d5348 commit 377d0da

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

crates/subspace-node/src/domain/evm_chain_spec.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ use crate::chain_spec_utils::{chain_spec_properties, get_public_key_from_seed};
2020
use crate::domain::cli::{GenesisDomain, GenesisOperatorParams, SpecId};
2121
use domain_runtime_primitives::{AccountId20Converter, MultiAccountId};
2222
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,
2525
};
2626
use hex_literal::hex;
2727
use parity_scale_codec::Encode;
2828
use sc_chain_spec::GenericChainSpec;
2929
use sc_service::ChainType;
3030
use sp_core::crypto::UncheckedFrom;
3131
use sp_domains::storage::RawGenesis;
32-
use sp_domains::{OperatorAllowList, OperatorPublicKey, RuntimeType};
32+
use sp_domains::{OperatorAllowList, OperatorPublicKey, PermissionedActionAllowedBy, RuntimeType};
3333
use sp_runtime::traits::Convert;
3434
use sp_runtime::BuildStorage;
3535
use std::collections::BTreeSet;
@@ -165,6 +165,11 @@ fn testnet_genesis() -> RuntimeGenesisConfig {
165165
.collect(),
166166
..Default::default()
167167
},
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+
},
168173
..Default::default()
169174
}
170175
}

0 commit comments

Comments
 (0)