Skip to content

Commit e7efa6d

Browse files
authored
release 2.4.23 (#567)
* release 2.4.23 * fixed test * lint * test fixed
1 parent 4c2613c commit e7efa6d

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

c-org-abi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fairmint/c-org-abi",
3-
"version": "2.4.22",
3+
"version": "2.4.23",
44
"description": "ABI for c-org contracts including FAIR and DAT.",
55
"repository": {
66
"type": "git",

csvTests/csvTests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ contract("dat / csvTests", (accounts) => {
185185
)) == 0
186186
) {
187187
console.log(` Set #${row.account.id} to approve dat`);
188-
await currency.approve(contracts.dat.address, -1, {
188+
await currency.approve(contracts.dat.address, constants.MAX_UINT, {
189189
from: row.account.address,
190190
});
191191
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fairmint/c-org-contracts",
3-
"version": "2.4.22",
3+
"version": "2.4.23",
44
"description": "Smart-contracts for continuous organizations.",
55
"scripts": {
66
"build": "npm run compile",

test/dat/permitBuy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ contract("dat / permitBuy", (accounts) => {
6464
const tx = await wallet.sign({
6565
to: usdc.address,
6666
data: usdc.contract.methods
67-
.approve(contracts.dat.address, -1)
67+
.approve(contracts.dat.address, constants.MAX_UINT)
6868
.encodeABI(),
6969
gasLimit: 6000000,
7070
nonce: await web3.eth.getTransactionCount(wallet.address),

test/dat/upgrade.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ contract("dat / upgrade", (accounts) => {
169169

170170
await approveAll(contracts, accounts);
171171
await dai.mint(trader, "99999999999999999999999999", { from: accounts[0] });
172-
await dai.approve(contracts.dat.address, -1, { from: trader });
172+
await dai.approve(contracts.dat.address, constants.MAX_UINT, {
173+
from: trader,
174+
});
173175
await contracts.dat.buy(trader, "100000000000000000000", 1, {
174176
from: trader,
175177
});

0 commit comments

Comments
 (0)