Skip to content

Commit d4d815d

Browse files
author
Jonas Bostoen
authored
Update transactionChecker.js
1 parent f2173f8 commit d4d815d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transactionChecker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = web3 => {
44
const account = 'YOUR_ETH_ADDRESS'.toLowerCase();
55

66
return {
7-
checkLastBlock: async () => {
7+
async checkLastBlock() => {
88
let block = await web3.eth.getBlock('latest');
99
console.log(`[*] Searching block ${ block.number }...`);
1010
if (block && block.transactions) {
@@ -18,7 +18,7 @@ module.exports = web3 => {
1818
}
1919
},
2020

21-
checkBlocks: async (start, end) => {
21+
async checkBlocks(start, end) => {
2222
for (let i = start; i < end; i++) {
2323
let block = await web3.eth.getBlock(i)
2424
console.log(`[*] Searching block ${ i }`);

0 commit comments

Comments
 (0)