Skip to content

Commit

Permalink
release 2.4.23 (#567)
Browse files Browse the repository at this point in the history
* release 2.4.23

* fixed test

* lint

* test fixed
  • Loading branch information
leekt authored Oct 23, 2020
1 parent 4c2613c commit e7efa6d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion c-org-abi/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion csvTests/csvTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/dat/permitBuy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 3 additions & 1 deletion test/dat/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit e7efa6d

Please sign in to comment.