From bba7443a69dd5976b28817e36e10a3091b4c12d9 Mon Sep 17 00:00:00 2001 From: librelois Date: Mon, 27 Nov 2023 14:36:00 +0100 Subject: [PATCH] tmp: temporary disable runtime api version increment --- client/rpc/src/eth/pending.rs | 12 ++++++------ primitives/rpc/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/rpc/src/eth/pending.rs b/client/rpc/src/eth/pending.rs index 51c380a7c3..c426bb1ad5 100644 --- a/client/rpc/src/eth/pending.rs +++ b/client/rpc/src/eth/pending.rs @@ -102,12 +102,12 @@ where ); // Initialize the pending block header - match api.api_version::>(best_hash)? { - Some(version) if version >= 6 => { - api.initialize_pending_block(best_hash, &pending_header)? - } - _ => api.initialize_block(best_hash, &pending_header)?, - } + //match api.api_version::>(best_hash)? { + //Some(version) if version >= 6 => { + api.initialize_pending_block(best_hash, &pending_header)?; + //} + //_ => api.initialize_block(best_hash, &pending_header)?, + //} // Apply inherents to the pending block. let inherents = api.execute_in_transaction(move |api| { diff --git a/primitives/rpc/src/lib.rs b/primitives/rpc/src/lib.rs index c2ede57cb7..3eab2d7628 100644 --- a/primitives/rpc/src/lib.rs +++ b/primitives/rpc/src/lib.rs @@ -88,7 +88,7 @@ impl RuntimeStorageOverride for () { sp_api::decl_runtime_apis! { /// API necessary for Ethereum-compatibility layer. - #[api_version(6)] + #[api_version(5)] pub trait EthereumRuntimeRPCApi { /// Returns runtime defined pallet_evm::ChainId. fn chain_id() -> u64;