@@ -26,13 +26,16 @@ use scale_codec::{Decode, Encode};
2626use sc_client_api:: backend:: { Backend , StorageProvider } ;
2727use sc_transaction_pool:: ChainApi ;
2828use sp_api:: {
29- ApiExt , CallApiAt , CallApiAtParams , CallContext , Extensions , ProvideRuntimeApi ,
30- StorageTransactionCache ,
29+ ApiExt , CallApiAt , CallApiAtParams , Extensions , ProvideRuntimeApi ,
3130} ;
3231use sp_block_builder:: BlockBuilder as BlockBuilderApi ;
3332use sp_blockchain:: HeaderBackend ;
33+ use sp_core:: traits:: CallContext ;
3434use sp_io:: hashing:: { blake2_128, twox_128} ;
35- use sp_runtime:: { traits:: Block as BlockT , DispatchError , SaturatedConversion } ;
35+ use sp_runtime:: {
36+ traits:: { Block as BlockT , HashingFor } ,
37+ DispatchError , SaturatedConversion ,
38+ } ;
3639use sp_state_machine:: OverlayedChanges ;
3740// Frontier
3841use fc_rpc_core:: types:: * ;
@@ -237,14 +240,11 @@ where
237240 api_version,
238241 state_overrides,
239242 ) ?;
240- let storage_transaction_cache =
241- RefCell :: < StorageTransactionCache < B , C :: StateBackend > > :: default ( ) ;
242243 let params = CallApiAtParams {
243244 at : substrate_hash,
244245 function : "EthereumRuntimeRPCApi_call" ,
245246 arguments : encoded_params,
246247 overlayed_changes : & RefCell :: new ( overlayed_changes) ,
247- storage_transaction_cache : & storage_transaction_cache,
248248 call_context : CallContext :: Offchain ,
249249 recorder : & None ,
250250 extensions : & RefCell :: new ( Extensions :: new ( ) ) ,
@@ -884,7 +884,7 @@ where
884884 block_hash : B :: Hash ,
885885 api_version : u32 ,
886886 state_overrides : Option < BTreeMap < H160 , CallStateOverride > > ,
887- ) -> RpcResult < OverlayedChanges > {
887+ ) -> RpcResult < OverlayedChanges < HashingFor < B > > > {
888888 let mut overlayed_changes = OverlayedChanges :: default ( ) ;
889889 if let Some ( state_overrides) = state_overrides {
890890 for ( address, state_override) in state_overrides {
0 commit comments