Skip to content

Commit

Permalink
Rename remaining instances of shared_args
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Aug 16, 2024
1 parent 83249e5 commit f04b7e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions core/node/api_server/src/tx_sender/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl TxSender {
stage_latency.observe();

let stage_latency = SANDBOX_METRICS.start_tx_submit_stage(tx_hash, SubmitTxStage::DryRun);
let shared_args = self.call_args(&tx, None).await?;
let setup_args = self.call_args(&tx, None).await?;
let vm_permit = self.0.vm_concurrency_limiter.acquire().await;
let vm_permit = vm_permit.ok_or(SubmitTxError::ServerShuttingDown)?;
let mut connection = self.acquire_replica_connection().await?;
Expand All @@ -383,7 +383,7 @@ impl TxSender {
.executor
.execute_tx_in_sandbox(
vm_permit.clone(),
shared_args.clone(),
setup_args.clone(),
TxExecutionArgs::for_validation(tx.clone()),
connection,
block_args,
Expand All @@ -408,7 +408,7 @@ impl TxSender {
connection,
vm_permit,
tx.clone(),
shared_args,
setup_args,
block_args,
computational_gas_limit,
)
Expand Down Expand Up @@ -707,15 +707,15 @@ impl TxSender {
}
}

let shared_args = self.args_for_gas_estimate(fee_model_params, base_fee).await;
let setup_args = self.args_for_gas_estimate(fee_model_params, base_fee).await;
let execution_args = TxExecutionArgs::for_gas_estimate(tx);
let connection = self.acquire_replica_connection().await?;
let execution_output = self
.0
.executor
.execute_tx_in_sandbox(
vm_permit,
shared_args,
setup_args,
execution_args,
connection,
block_args,
Expand Down
4 changes: 2 additions & 2 deletions core/node/api_server/src/web3/namespaces/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl DebugNamespace {
let call_overrides = request.get_call_overrides()?;
let tx = L2Tx::from_request(request.into(), MAX_ENCODED_TX_SIZE)?;

let shared_args = self.call_args(call_overrides.enforced_base_fee).await;
let setup_args = self.call_args(call_overrides.enforced_base_fee).await;
let vm_permit = self
.state
.tx_sender
Expand All @@ -202,7 +202,7 @@ impl DebugNamespace {
let result = executor
.execute_tx_in_sandbox(
vm_permit,
shared_args,
setup_args,
TxExecutionArgs::for_eth_call(tx.clone()),
connection,
block_args,
Expand Down

0 comments on commit f04b7e1

Please sign in to comment.