Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix(pkg): fix returned context error from WaitL1Origin (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Jul 25, 2023
1 parent ed63c1f commit 0ebf121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (c *Client) WaitL1Origin(ctx context.Context, blockID *big.Int) (*rawdb.L1O
log.Debug("Start fetching L1Origin from L2 execution engine", "blockID", blockID)
for ; true; <-ticker.C {
if ctxWithTimeout.Err() != nil {
return nil, ctx.Err()
return nil, ctxWithTimeout.Err()
}

l1Origin, err = c.L2.L1OriginByID(ctxWithTimeout, blockID)
Expand Down

0 comments on commit 0ebf121

Please sign in to comment.