difftreelog
style fix formatting
in: master
3 files changed
node/rpc/src/lib.rsdiffbeforeafterboth--- a/node/rpc/src/lib.rs
+++ b/node/rpc/src/lib.rs
@@ -93,7 +93,6 @@
pub block_data_cache: Arc<EthBlockDataCache<Block>>,
}
-
pub fn overrides_handle<C, BE, R>(client: Arc<C>) -> Arc<OverrideHandle<Block>>
where
C: ProvideRuntimeApi<Block> + StorageProvider<Block, BE> + AuxStore,
pallets/evm-coder-substrate/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/evm-transaction-payment/src/lib.rsdiffbeforeafterboth--- 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()??;