Skip to content

Commit

Permalink
Fix drink_client double dry run (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou authored Feb 20, 2024
1 parent 4b2f1de commit 5e70f38
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/e2e/src/drink_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ where
caller: &Keypair,
message: &CallBuilderFinal<E, Args, RetType>,
value: E::Balance,
_gas_limit: Weight,
gas_limit: Weight,
storage_deposit_limit: Option<E::Balance>,
) -> Result<Self::EventLog, Self::Error>
where
Expand All @@ -356,17 +356,14 @@ where
let exec_input = Encode::encode(message.clone().params().exec_input());
let account_id = (*account_id.as_ref()).into();

self.bare_call_dry_run(caller, message, value, storage_deposit_limit)
.await?;

if self
.sandbox
.call_contract(
account_id,
value,
exec_input,
keypair_to_account(caller),
DEFAULT_GAS_LIMIT,
gas_limit,
storage_deposit_limit,
pallet_contracts::Determinism::Enforced,
)
Expand Down

0 comments on commit 5e70f38

Please sign in to comment.