--- a/node/rpc/src/lib.rs +++ b/node/rpc/src/lib.rs @@ -93,7 +93,6 @@ pub block_data_cache: Arc>, } - pub fn overrides_handle(client: Arc) -> Arc> where C: ProvideRuntimeApi + StorageProvider + AuxStore, --- a/pallets/evm-coder-substrate/src/lib.rs +++ b/pallets/evm-coder-substrate/src/lib.rs @@ -196,10 +196,7 @@ if logs.is_empty() { return; } - T::EthereumTransactionSender::submit_logs_transaction( - Default::default(), - logs, - ) + T::EthereumTransactionSender::submit_logs_transaction(Default::default(), logs) } } --- a/pallets/evm-transaction-payment/src/lib.rs +++ b/pallets/evm-transaction-payment/src/lib.rs @@ -63,10 +63,12 @@ // This method is only used for checking, we shouldn't touch storage in it frame_support::storage::with_transaction(|| { let origin_sub = T::CrossAccountId::from_eth(origin); - TransactionOutcome::Rollback(Ok::<_, DispatchError>(T::EvmSponsorshipHandler::get_sponsor( - &origin_sub, - &(*target, input.clone()), - ))) + TransactionOutcome::Rollback(Ok::<_, DispatchError>( + T::EvmSponsorshipHandler::get_sponsor( + &origin_sub, + &(*target, input.clone()), + ), + )) }) // FIXME: it may fail with DispatchError in case of depth limit .ok()? @@ -148,10 +150,9 @@ // Effects from EvmSponsorshipHandler are applied in OnChargeEvmTransaction by pallet_evm::runner // TODO: Should we implement simulation mode (test, but do not apply effects) in `up-sponsorship`? let sponsor = frame_support::storage::with_transaction(|| { - TransactionOutcome::Rollback(Ok::<_, DispatchError>(T::EvmSponsorshipHandler::get_sponsor( - &who, - &(*target, input.clone()), - ))) + TransactionOutcome::Rollback(Ok::<_, DispatchError>( + T::EvmSponsorshipHandler::get_sponsor(&who, &(*target, input.clone())), + )) }) // FIXME: it may fail with DispatchError in case of depth limit .ok()??;