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

fix(pkg): fix returned context error from WaitL1Origin #331

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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