Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions runtime/testnet/src/config/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use frame_support::{
parameter_types,
traits::{ConstBool, ConstU32, ConstU64, Nothing, Randomness},

Check warning on line 5 in runtime/testnet/src/config/contracts.rs

View workflow job for this annotation

GitHub Actions / clippy

unused import: `ConstU64`

warning: unused import: `ConstU64` --> runtime/testnet/src/config/contracts.rs:5:32 | 5 | traits::{ConstBool, ConstU32, ConstU64, Nothing, Randomness}, | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
};
use frame_system::{pallet_prelude::BlockNumberFor, EnsureSigned};
use pop_runtime_common::{DepositPerByte, DepositPerItem, UNIT};
Expand Down Expand Up @@ -38,6 +38,7 @@
const ETH: u128 = 1_000_000_000_000_000_000;

parameter_types! {
pub ChainId: u64 = u32::from(crate::genesis::PARA_ID) as u64;
pub Schedule: pallet_contracts::Schedule<Runtime> = schedule::<Runtime>();
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024);
pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
Expand Down Expand Up @@ -91,8 +92,8 @@
// No runtime dispatchables are callable from contracts.
type CallFilter = Nothing;
type ChainExtension = ();
// EVM chain id. 3,395 is a unique ID still.
type ChainId = ConstU64<3_395>;
// EVM Chain Id. Should be different from the one configured in mainnet.
type ChainId = ChainId;
// 30 percent of storage deposit held for using a code hash.
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Currency = Balances;
Expand Down
Loading