Skip to content

Commit

Permalink
Update fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Nov 12, 2024
1 parent 39065eb commit 01585f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/soroban-cli/src/commands/contract/invoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ impl Cmd {
})
}

async fn should_send_tx_with_default_account(
// uses a default account to check if the tx should be sent after the simulation
async fn should_send_after_sim(
&self,
host_function_params: InvokeContractArgs,
rpc_client: Client,
Expand Down Expand Up @@ -241,7 +242,7 @@ impl NetworkRunnable for Cmd {
build_host_function_parameters(&contract_id, &self.slop, &spec_entries, config)?;

let should_send_tx = self
.should_send_tx_with_default_account(host_function_params.clone(), client.clone())
.should_send_after_sim(host_function_params.clone(), client.clone())
.await?;

let account_details = if should_send_tx == ShouldSend::Yes {
Expand Down

0 comments on commit 01585f4

Please sign in to comment.