From e7efa6d127972d124524489a28e98bd4acc127bf Mon Sep 17 00:00:00 2001 From: taek Date: Fri, 23 Oct 2020 22:12:28 +0900 Subject: [PATCH] release 2.4.23 (#567) * release 2.4.23 * fixed test * lint * test fixed --- c-org-abi/package.json | 2 +- csvTests/csvTests.js | 2 +- package.json | 2 +- test/dat/permitBuy.js | 2 +- test/dat/upgrade.js | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/c-org-abi/package.json b/c-org-abi/package.json index 926caeb0..35813493 100644 --- a/c-org-abi/package.json +++ b/c-org-abi/package.json @@ -1,6 +1,6 @@ { "name": "@fairmint/c-org-abi", - "version": "2.4.22", + "version": "2.4.23", "description": "ABI for c-org contracts including FAIR and DAT.", "repository": { "type": "git", diff --git a/csvTests/csvTests.js b/csvTests/csvTests.js index 576b3c03..940b21fc 100644 --- a/csvTests/csvTests.js +++ b/csvTests/csvTests.js @@ -185,7 +185,7 @@ contract("dat / csvTests", (accounts) => { )) == 0 ) { console.log(` Set #${row.account.id} to approve dat`); - await currency.approve(contracts.dat.address, -1, { + await currency.approve(contracts.dat.address, constants.MAX_UINT, { from: row.account.address, }); } diff --git a/package.json b/package.json index 62f602e9..5e21d34f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fairmint/c-org-contracts", - "version": "2.4.22", + "version": "2.4.23", "description": "Smart-contracts for continuous organizations.", "scripts": { "build": "npm run compile", diff --git a/test/dat/permitBuy.js b/test/dat/permitBuy.js index 7a1002df..6c083569 100644 --- a/test/dat/permitBuy.js +++ b/test/dat/permitBuy.js @@ -64,7 +64,7 @@ contract("dat / permitBuy", (accounts) => { const tx = await wallet.sign({ to: usdc.address, data: usdc.contract.methods - .approve(contracts.dat.address, -1) + .approve(contracts.dat.address, constants.MAX_UINT) .encodeABI(), gasLimit: 6000000, nonce: await web3.eth.getTransactionCount(wallet.address), diff --git a/test/dat/upgrade.js b/test/dat/upgrade.js index 2e738452..91d5aee4 100644 --- a/test/dat/upgrade.js +++ b/test/dat/upgrade.js @@ -169,7 +169,9 @@ contract("dat / upgrade", (accounts) => { await approveAll(contracts, accounts); await dai.mint(trader, "99999999999999999999999999", { from: accounts[0] }); - await dai.approve(contracts.dat.address, -1, { from: trader }); + await dai.approve(contracts.dat.address, constants.MAX_UINT, { + from: trader, + }); await contracts.dat.buy(trader, "100000000000000000000", 1, { from: trader, });