From 5b7b80dbe8712874008878b30db09f7c38d8b930 Mon Sep 17 00:00:00 2001 From: Hendrik Hofstadt Date: Fri, 21 Aug 2020 12:48:14 +0200 Subject: [PATCH] ethereum: add nonce to tests --- ethereum/test/wormhole.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/test/wormhole.js b/ethereum/test/wormhole.js index e95b5fd5..456fb291 100644 --- a/ethereum/test/wormhole.js +++ b/ethereum/test/wormhole.js @@ -88,7 +88,7 @@ contract("Wormhole", function () { // Expect user to have a balance let wa = new WrappedAsset("0x3c63250aFA2470359482d98749f2d60D2971c818") - await bridge.lockAssets(wa.address, "500000000000000000", "0x0", 2); + await bridge.lockAssets(wa.address, "500000000000000000", "0x0", 2, 2); let balance = await wa.balanceOf("0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1"); // Expect user balance to decrease @@ -120,7 +120,7 @@ contract("Wormhole", function () { assert.isTrue(threw); // Lock assets - let ev = await bridge.lockAssets(token.address, "1000000000000000000", "0x1230000000000000000000000000000000000000000000000000000000000000", 3); + let ev = await bridge.lockAssets(token.address, "1000000000000000000", "0x1230000000000000000000000000000000000000000000000000000000000000", 3 ,3); // Check that the lock event was emitted correctly assert.lengthOf(ev.logs, 1)