From 5f0b3f192ad88ba791dd9f248f2e216fee603291 Mon Sep 17 00:00:00 2001 From: thetheveloper Date: Wed, 17 Jul 2024 00:12:33 +0200 Subject: [PATCH] Revert "include nonces for failing tests inside single_owner_account" This reverts commit caee37d24c3619b4328be4c6bba360f9225fb44d. --- .../tests/single_owner_account.rs | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/starknet-accounts/tests/single_owner_account.rs b/starknet-accounts/tests/single_owner_account.rs index fea2a749..46d895f4 100644 --- a/starknet-accounts/tests/single_owner_account.rs +++ b/starknet-accounts/tests/single_owner_account.rs @@ -309,20 +309,15 @@ async fn can_execute_eth_transfer_invoke_v1_inner( Felt::from_hex("049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7").unwrap(); let mut account = - SingleOwnerAccount::new(&provider, signer, address, CHAIN_ID, ExecutionEncoding::New); + SingleOwnerAccount::new(provider, signer, address, CHAIN_ID, ExecutionEncoding::New); account.set_block_id(BlockId::Tag(BlockTag::Pending)); - let nonce = provider - .get_nonce(BlockId::Tag(BlockTag::Latest), address) - .await - .unwrap(); let result = account .execute_v1(vec![Call { to: eth_token_address, selector: get_selector_from_name("transfer").unwrap(), calldata: vec![Felt::from_hex("0x1234").unwrap(), Felt::ONE, Felt::ZERO], }]) - .nonce(nonce) .max_fee(Felt::from_dec_str("1000000000000000000").unwrap()) .send() .await @@ -350,20 +345,15 @@ async fn can_execute_eth_transfer_invoke_v3_inner( Felt::from_hex("049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7").unwrap(); let mut account = - SingleOwnerAccount::new(&provider, signer, address, CHAIN_ID, ExecutionEncoding::New); + SingleOwnerAccount::new(provider, signer, address, CHAIN_ID, ExecutionEncoding::New); account.set_block_id(BlockId::Tag(BlockTag::Pending)); - let nonce = provider - .get_nonce(BlockId::Tag(BlockTag::Latest), address) - .await - .unwrap(); let result = account .execute_v3(vec![Call { to: eth_token_address, selector: get_selector_from_name("transfer").unwrap(), calldata: vec![Felt::from_hex("0x1234").unwrap(), Felt::ONE, Felt::ZERO], }]) - .nonce(nonce) .gas(200000) .gas_price(500000000000000) .send() @@ -389,13 +379,9 @@ async fn can_execute_eth_transfer_invoke_v3_with_manual_gas_inner