From 9d426054b2b86ba9c772fd9964a48e3eaf6cb13c Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Fri, 16 Oct 2020 06:39:45 -0400 Subject: [PATCH] Decouple Runtime API impls from specific structs (#167) * decouple runtime API gas price from struct * same for chain IDs --- template/runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/runtime/src/lib.rs b/template/runtime/src/lib.rs index d34afa9d3..8fe4886e6 100644 --- a/template/runtime/src/lib.rs +++ b/template/runtime/src/lib.rs @@ -479,7 +479,7 @@ impl_runtime_apis! { impl frontier_rpc_primitives::EthereumRuntimeRPCApi for Runtime { fn chain_id() -> u64 { - ChainId::get() + ::ChainId::get() } fn account_basic(address: H160) -> EVMAccount { @@ -487,7 +487,7 @@ impl_runtime_apis! { } fn gas_price() -> U256 { - FixedGasPrice::min_gas_price() + ::FeeCalculator::min_gas_price() } fn account_code_at(address: H160) -> Vec {