Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Mar 15, 2023
1 parent e32cad4 commit 104c1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/actions/public/watchContractEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ export function watchContractEvent<
logs = await getLogs(client, {
address,
args,
fromBlock: previousBlockNumber
? previousBlockNumber + 1n
: undefined,
fromBlock: previousBlockNumber + 1n,
toBlock: blockNumber,
event: getAbiItem({
abi,
Expand Down
4 changes: 1 addition & 3 deletions src/actions/public/watchEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export function watchEvent<
logs = await getLogs(client, {
address,
args,
fromBlock: previousBlockNumber
? previousBlockNumber + 1n
: undefined,
fromBlock: previousBlockNumber + 1n,
toBlock: blockNumber,
event: event!,
})
Expand Down

0 comments on commit 104c1ba

Please sign in to comment.