Skip to content

Commit

Permalink
fix(taiko-client): remove null value lastVerifiedBlockID (#18816)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 authored Jan 22, 2025
1 parent ef8562c commit 8275a72
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func createPayloadAndSetHead(
}

var (
lastVerifiedBlockID uint64
lastVerifiedBlockHash common.Hash
)
lastVerifiedTS, err := rpc.GetLastVerifiedTransitionPacaya(ctx)
Expand All @@ -52,7 +51,7 @@ func createPayloadAndSetHead(
return nil, fmt.Errorf("failed to fetch last verified block: %w", err)
}

if payload.Number > lastVerifiedBlockID {
if payload.Number > lastVerifiedBlockInfo.BlockId {
lastVerifiedBlockHash = lastVerifiedBlockInfo.BlockHash
}
} else {
Expand Down

0 comments on commit 8275a72

Please sign in to comment.