Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions runtime/mainnet/src/config/revive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl pallet_revive::Config for Runtime {
type Debug = ();
type DepositPerByte = DepositPerByte;
type DepositPerItem = DepositPerItem;
type EthGasEncoder = ();
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
// 1 ETH : 1_000_000 UNIT
type NativeToEthRatio = NativeToEthRatio;
Expand Down Expand Up @@ -129,6 +130,11 @@ mod tests {
assert_eq!(<<Runtime as Config>::DepositPerItem as Get<Balance>>::get(), deposit(1, 0),);
}

#[test]
fn ensure_eth_gas_encoder() {
assert_eq!(TypeId::of::<<Runtime as Config>::EthGasEncoder>(), TypeId::of::<()>(),);
}

#[test]
fn instantiate_origin_is_ensure_signed() {
assert_eq!(
Expand Down
1 change: 1 addition & 0 deletions runtime/testnet/src/config/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl pallet_revive::Config for Runtime {
type Debug = ();
type DepositPerByte = DepositPerByte;
type DepositPerItem = DepositPerItem;
type EthGasEncoder = ();
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
// 1 ETH : 1_000_000 UNIT
type NativeToEthRatio = NativeToEthRatio;
Expand Down
Loading