Contracts: Add contract's GenesisConfig in demo-runtime (#712)

* Add contracts to GenesisConfig in demo-runtime

* Update roots.
This commit is contained in:
Sergey Pepyakin
2018-09-11 19:10:24 +03:00
committed by Gav Wood
parent e8f4b85029
commit 7520d601e3
4 changed files with 37 additions and 4 deletions
+18 -1
View File
@@ -19,7 +19,8 @@
use ed25519;
use primitives::AuthorityId;
use demo_runtime::{GenesisConfig, ConsensusConfig, CouncilConfig, DemocracyConfig,
SessionConfig, StakingConfig, TimestampConfig, BalancesConfig, TreasuryConfig, Permill};
SessionConfig, StakingConfig, TimestampConfig, BalancesConfig, TreasuryConfig,
ContractConfig, Permill};
use service::ChainSpec;
const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
@@ -98,6 +99,14 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
spend_period: 12 * 60 * 24,
burn: Permill::from_percent(50),
}),
contract: Some(ContractConfig {
contract_fee: 21,
call_base_fee: 135,
create_base_fee: 175,
gas_price: 1,
max_depth: 1024,
block_gas_limit: 10_000_000,
}),
}
}
@@ -183,6 +192,14 @@ fn testnet_genesis(initial_authorities: Vec<AuthorityId>) -> GenesisConfig {
spend_period: 12 * 60 * 24,
burn: Permill::from_percent(50),
}),
contract: Some(ContractConfig {
contract_fee: 21,
call_base_fee: 135,
create_base_fee: 175,
gas_price: 1,
max_depth: 1024,
block_gas_limit: 10_000_000,
}),
}
}