0

Im trying to implement the pallet_evm to my substrate runtime i've seen this handy instruction but the types have changed How to implement the EVM Trait for a Substrate Runtime?

impl FeeCalculator for FixedGasPrice {
    fn min_gas_price() -> U256 {
        // Gas price is always one token per gas.
        1.into()
    }
}
parameter_types! {
    pub const ChainId: u64 = 43;
}
impl pallet_evm::Trait for Runtime {
    type FeeCalculator = FixedGasPrice;
    type CallOrigin = EnsureAddressOrigin<AccountId, Success = AccountId>;
    type WithdrawOrigin = EnsureAddressOrigin<AccountId, Success = AccountId>;
    type AddressMapping = AddressMapping<AccountId>;
    type Currency = balances::Module<Runtime>;
    type Event = Event;
    type ChainId = ChainId;
}

how do we implement this pallet now with rc-5?

Noah Bergh
  • 493
  • 4
  • 14

0 Answers0