git.delta.rocks / unique-network / refs/commits / 9d1133e99cb5

difftreelog

style fix formatting

Yaroslav Bolyukin2022-04-29parent: #82528be.patch.diff
in: master

3 files changed

modifiednode/rpc/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/evm-coder-substrate/src/lib.rsdiffbeforeafterboth
--- 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)
 		}
 	}
 
modifiedpallets/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()??;