git.delta.rocks / unique-network / refs/commits / df29d0d67233

difftreelog

style clarify argument names

Yaroslav Bolyukin2022-11-24parent: #6913914.patch.diff
in: master

3 files changed

modifiednode/cli/src/service.rsdiffbeforeafterboth
--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -45,7 +45,7 @@
 use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult};
 use cumulus_relay_chain_rpc_interface::{RelayChainRpcInterface, create_client_and_start_worker};
 
-// Substrate ImportsA
+// Substrate Imports
 use sp_api::BlockT;
 use sc_executor::NativeElseWasmExecutor;
 use sc_executor::NativeExecutionDispatch;
modifiednode/rpc/src/lib.rsdiffbeforeafterboth
--- a/node/rpc/src/lib.rs
+++ b/node/rpc/src/lib.rs
@@ -216,6 +216,7 @@
 
 	let overrides = overrides_handle::<_, _, R>(client.clone());
 
+	let execute_gas_limit_multiplier = 10;
 	io.merge(
 		Eth::new(
 			client.clone(),
@@ -230,7 +231,7 @@
 			block_data_cache.clone(),
 			fee_history_cache,
 			fee_history_limit,
-			10,
+			execute_gas_limit_multiplier,
 		)
 		.into_rpc(),
 	)?;
modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
482 };482 };
483483
484 let is_transactional = false;484 let is_transactional = false;
485 let validate = false;
485 <Runtime as pallet_evm::Config>::Runner::call(486 <Runtime as pallet_evm::Config>::Runner::call(
486 CrossAccountId::from_eth(from),487 CrossAccountId::from_eth(from),
487 to,488 to,
493 nonce,494 nonce,
494 access_list.unwrap_or_default(),495 access_list.unwrap_or_default(),
495 is_transactional,496 is_transactional,
496 false,497 validate,
497 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),498 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),
498 ).map_err(|err| err.error.into())499 ).map_err(|err| err.error.into())
499 }500 }
519 };520 };
520521
521 let is_transactional = false;522 let is_transactional = false;
523 let validate = false;
522 <Runtime as pallet_evm::Config>::Runner::create(524 <Runtime as pallet_evm::Config>::Runner::create(
523 CrossAccountId::from_eth(from),525 CrossAccountId::from_eth(from),
524 data,526 data,
529 nonce,531 nonce,
530 access_list.unwrap_or_default(),532 access_list.unwrap_or_default(),
531 is_transactional,533 is_transactional,
532 false,534 validate,
533 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),535 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),
534 ).map_err(|err| err.error.into())536 ).map_err(|err| err.error.into())
535 }537 }