Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MujkicA committed Jun 13, 2024
1 parent 1dd32c2 commit 07af8af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e2e/tests/wallets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ async fn send_transfer_transactions() -> Result<()> {
// Configure transaction policies
let tip = 2;
let script_gas_limit = 500_000;
let expected_script_gas_limit = 0;
let maturity = 0;

let tx_policies = TxPolicies::default()
Expand All @@ -280,8 +279,8 @@ async fn send_transfer_transactions() -> Result<()> {
TransactionType::Script(tx) => tx,
_ => panic!("Received unexpected tx type!"),
};
// Transfer scripts have `script_gas_limit` set to `0`
assert_eq!(script.gas_limit(), expected_script_gas_limit);
// Transfer scripts uses set `script_gas_limit` despite not having script code
assert_eq!(script.gas_limit(), script_gas_limit);
assert_eq!(script.maturity(), maturity as u32);

let wallet_1_spendable_resources = wallet_1.get_spendable_resources(base_asset_id, 1).await?;
Expand Down

0 comments on commit 07af8af

Please sign in to comment.