From cd5165efd0e6ad77e96866b436168b0d7b9aad50 Mon Sep 17 00:00:00 2001 From: Jackie Date: Fri, 22 Jul 2022 07:47:40 +0200 Subject: [PATCH] Fix issues with teardown in wallet tests --- testmodule/testWallet.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testmodule/testWallet.nim b/testmodule/testWallet.nim index d1d3da8..3c882d6 100644 --- a/testmodule/testWallet.nim +++ b/testmodule/testWallet.nim @@ -20,8 +20,8 @@ suite "Wallet": provider = JsonRpcProvider.new() snapshot = await provider.send("evm_snapshot") - #teardown: - # discard await provider.send("evm_revert", @[snapshot]) + teardown: + discard await provider.send("evm_revert", @[snapshot]) test "Can create Wallet with private key": discard Wallet.new(pk1) @@ -108,7 +108,7 @@ suite "Wallet": #TODO add actual token contract, not random address. Should work regardless let wallet = Wallet.new(pk_with_funds, provider) let overrides = TransactionOverrides( - nonce: some 1.u256, + nonce: some 0.u256, gasPrice: some 1_000_000_000.u256, gasLimit: some 22_000.u256) let testToken = Erc20.new(wallet.address, wallet) @@ -118,7 +118,7 @@ suite "Wallet": #TODO add actual token contract, not random address. Should work regardless let wallet = Wallet.new(pk_with_funds, provider) let overrides = TransactionOverrides( - nonce: some 2.u256, + nonce: some 0.u256, maxFee: some 1_000_000_000.u256, maxPriorityFee: some 1_000_000_000.u256, gasLimit: some 22_000.u256)