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
45use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult};45use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult};
46use cumulus_relay_chain_rpc_interface::{RelayChainRpcInterface, create_client_and_start_worker};46use cumulus_relay_chain_rpc_interface::{RelayChainRpcInterface, create_client_and_start_worker};
4747
48// Substrate ImportsA48// Substrate Imports
49use sp_api::BlockT;49use sp_api::BlockT;
50use sc_executor::NativeElseWasmExecutor;50use sc_executor::NativeElseWasmExecutor;
51use sc_executor::NativeExecutionDispatch;51use 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
--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -482,6 +482,7 @@
                     };
 
                     let is_transactional = false;
+                    let validate = false;
                     <Runtime as pallet_evm::Config>::Runner::call(
                         CrossAccountId::from_eth(from),
                         to,
@@ -493,7 +494,7 @@
                         nonce,
                         access_list.unwrap_or_default(),
                         is_transactional,
-                        false,
+                        validate,
                         config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),
                     ).map_err(|err| err.error.into())
                 }
@@ -519,6 +520,7 @@
                     };
 
                     let is_transactional = false;
+                    let validate = false;
                     <Runtime as pallet_evm::Config>::Runner::create(
                         CrossAccountId::from_eth(from),
                         data,
@@ -529,7 +531,7 @@
                         nonce,
                         access_list.unwrap_or_default(),
                         is_transactional,
-                        false,
+                        validate,
                         config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),
                     ).map_err(|err| err.error.into())
                 }