Skip to content

Commit

Permalink
chore(taiko-client): fix upgrade error
Browse files Browse the repository at this point in the history
  • Loading branch information
luanxu-mxc committed Nov 12, 2024
1 parent 37ad013 commit 8ece528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (s *Syncer) onBlockProposed(
}
if err != nil {
// CHANGE(MOONCHAIN): upgrade height may anchor failed
if meta.GetBlockID().Uint64() == encoding.GetProtocolConfig(s.rpc.L2.ChainID.Uint64()).OntakeForkHeight {
if meta.GetBlockID().Uint64()-1 == encoding.GetProtocolConfig(s.rpc.L2.ChainID.Uint64()).OntakeForkHeight {
parent, err = s.rpc.L2.HeaderByNumber(ctx, meta.GetBlockID())
if err != nil {
return fmt.Errorf("failed to fetch L2 parent block migrate: %w", err)
Expand Down

0 comments on commit 8ece528

Please sign in to comment.