Skip to content

Commit

Permalink
Easy fix for broken watchers (#1121)
Browse files Browse the repository at this point in the history
* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <[email protected]>
  • Loading branch information
2 people authored and tynes committed Jun 25, 2021
1 parent be2aad2 commit 68ccb9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-wombats-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/core-utils': patch
---

Minor fix on watchers to pick up finalization of transactions on L1
2 changes: 1 addition & 1 deletion packages/core-utils/src/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Watcher {
l2ToL1MsgHash: string,
pollForPending: boolean = true
): Promise<TransactionReceipt> {
return this.getTransactionReceipt(this.l2, l2ToL1MsgHash, pollForPending)
return this.getTransactionReceipt(this.l1, l2ToL1MsgHash, pollForPending)
}

public async getL2TransactionReceipt(
Expand Down

0 comments on commit 68ccb9a

Please sign in to comment.