Skip to content

Commit

Permalink
Allow anyone to create contracts on the default EVM domain
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jan 15, 2025
1 parent a6d5348 commit 377d0da
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crates/subspace-node/src/domain/evm_chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ use crate::chain_spec_utils::{chain_spec_properties, get_public_key_from_seed};
use crate::domain::cli::{GenesisDomain, GenesisOperatorParams, SpecId};
use domain_runtime_primitives::{AccountId20Converter, MultiAccountId};
use evm_domain_runtime::{
AccountId, BalancesConfig, EVMChainIdConfig, EVMConfig, Precompiles, RuntimeGenesisConfig,
SystemConfig, WASM_BINARY,
AccountId, BalancesConfig, EVMChainIdConfig, EVMConfig, EVMNoncetrackerConfig, Precompiles,
RuntimeGenesisConfig, SystemConfig, WASM_BINARY,
};
use hex_literal::hex;
use parity_scale_codec::Encode;
use sc_chain_spec::GenericChainSpec;
use sc_service::ChainType;
use sp_core::crypto::UncheckedFrom;
use sp_domains::storage::RawGenesis;
use sp_domains::{OperatorAllowList, OperatorPublicKey, RuntimeType};
use sp_domains::{OperatorAllowList, OperatorPublicKey, PermissionedActionAllowedBy, RuntimeType};
use sp_runtime::traits::Convert;
use sp_runtime::BuildStorage;
use std::collections::BTreeSet;
Expand Down Expand Up @@ -165,6 +165,11 @@ fn testnet_genesis() -> RuntimeGenesisConfig {
.collect(),
..Default::default()
},
evm_noncetracker: EVMNoncetrackerConfig {
// Allow anyone to create contracts on the public EVM domain.
// (For the private EVM domain, use the domain sudo account here.)
contract_creation_allowed_by: PermissionedActionAllowedBy::Anyone,
},
..Default::default()
}
}
Expand Down

0 comments on commit 377d0da

Please sign in to comment.