From 002b82d723be4978e879746fa4b5d498d8cbf1ab Mon Sep 17 00:00:00 2001 From: Noah Zinsmeister Date: Wed, 22 Jan 2020 15:43:14 -0500 Subject: [PATCH] fix permit test --- test/UniswapV2ERC20.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/UniswapV2ERC20.spec.ts b/test/UniswapV2ERC20.spec.ts index cf23dfb..4535aa1 100644 --- a/test/UniswapV2ERC20.spec.ts +++ b/test/UniswapV2ERC20.spec.ts @@ -107,7 +107,7 @@ describe('UniswapV2ERC20 via GenericERC20', () => { const { v, r, s } = ecsign(Buffer.from(digest.slice(2), 'hex'), Buffer.from(wallet.privateKey.slice(2), 'hex')) - await expect(token.permit(wallet.address, other.address, TEST_AMOUNT, nonce, expiration, v, hexlify(r), hexlify(s))) + await expect(token.permit(wallet.address, other.address, TEST_AMOUNT, expiration, v, hexlify(r), hexlify(s))) .to.emit(token, 'Approval') .withArgs(wallet.address, other.address, TEST_AMOUNT) expect(await token.nonces(wallet.address)).to.eq(bigNumberify(1))