Skip to content

Commit 6701983

Browse files
committed
expect specific block number for events
1 parent abf94c9 commit 6701983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/maker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const NINE_ETH = web3.utils.toWei("9");
1313

1414
const getLastEvent = async (eventName, instance) => {
1515
const events = await instance.getPastEvents(eventName, {
16-
fromBlock: 0,
16+
fromBlock: testBlock, // 1 ETH = ~$1820
1717
toBlock: "latest",
1818
});
1919
return events.pop().returnValues;

test/wraps.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const NINE_ETH = web3.utils.toWei("9");
1111

1212
const getLastEvent = async (eventName, instance) => {
1313
const events = await instance.getPastEvents(eventName, {
14-
fromBlock: 0,
14+
fromBlock: 17274000, // 1 ETH = ~$1820
1515
toBlock: "latest",
1616
});
1717
return events.pop().returnValues;

0 commit comments

Comments
 (0)