Skip to content

Commit 84b923f

Browse files
committed
chore: impl EthGasEncoder for pallet_revive (#525)
chore: impl EthGasEncoder for pallet_revive
1 parent f828bc3 commit 84b923f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

runtime/mainnet/src/config/revive.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl pallet_revive::Config for Runtime {
3232
type Debug = ();
3333
type DepositPerByte = DepositPerByte;
3434
type DepositPerItem = DepositPerItem;
35+
type EthGasEncoder = ();
3536
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
3637
// 1 ETH : 1_000_000 UNIT
3738
type NativeToEthRatio = NativeToEthRatio;
@@ -129,6 +130,11 @@ mod tests {
129130
assert_eq!(<<Runtime as Config>::DepositPerItem as Get<Balance>>::get(), deposit(1, 0),);
130131
}
131132

133+
#[test]
134+
fn ensure_eth_gas_encoder() {
135+
assert_eq!(TypeId::of::<<Runtime as Config>::EthGasEncoder>(), TypeId::of::<()>(),);
136+
}
137+
132138
#[test]
133139
fn instantiate_origin_is_ensure_signed() {
134140
assert_eq!(

runtime/testnet/src/config/contracts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl pallet_revive::Config for Runtime {
101101
type Debug = ();
102102
type DepositPerByte = DepositPerByte;
103103
type DepositPerItem = DepositPerItem;
104+
type EthGasEncoder = ();
104105
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
105106
// 1 ETH : 1_000_000 UNIT
106107
type NativeToEthRatio = NativeToEthRatio;

0 commit comments

Comments
 (0)