Skip to content

Commit 1ab455c

Browse files
committed
cleanup
1 parent 1a3c06b commit 1ab455c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contracts/MockRecipientReturnBool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ contract MockRecipientReturnBool {
1717
txCount += 1;
1818
// return false if passed "err"
1919
bool retval = keccak256(_data) != keccak256("err");
20-
console.log("reval", retval);
20+
console.log("retval", retval);
2121
return retval;
2222
}
2323
}

test/DATAv2-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ describe("DATAv2", () => {
4646

4747

4848
before = await recipient3.txCount()
49+
4950
//if callback returns true or false, shouldnt revert
5051
await token.transferAndCall(recipient3.address, parseEther("1"), errData)
51-
//no callback should revert transferAndCall
5252
await token.transferAndCall(recipient3.address, parseEther("1"), "0x")
53+
5354
after = await recipient3.txCount()
5455
expect(after).to.equal(before.add(2))
5556

0 commit comments

Comments
 (0)