Skip to content

Commit 9d42605

Browse files
authored
Decouple Runtime API impls from specific structs (#167)
* decouple runtime API gas price from struct * same for chain IDs
1 parent 51bd10f commit 9d42605

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

template/runtime/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,15 @@ impl_runtime_apis! {
479479

480480
impl frontier_rpc_primitives::EthereumRuntimeRPCApi<Block> for Runtime {
481481
fn chain_id() -> u64 {
482-
ChainId::get()
482+
<Runtime as frame_evm::Trait>::ChainId::get()
483483
}
484484

485485
fn account_basic(address: H160) -> EVMAccount {
486486
EVM::account_basic(&address)
487487
}
488488

489489
fn gas_price() -> U256 {
490-
FixedGasPrice::min_gas_price()
490+
<Runtime as frame_evm::Trait>::FeeCalculator::min_gas_price()
491491
}
492492

493493
fn account_code_at(address: H160) -> Vec<u8> {

0 commit comments

Comments
 (0)