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

Commit

Permalink
feat(driver): fix a block number issue (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Mar 21, 2024
1 parent d110fb4 commit eced566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/chain_syncer/calldata/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func (s *Syncer) fillForkchoiceState(

// Fetch the latest verified block's header from protocol.
variables, err := s.rpc.GetProtocolStateVariables(
&bind.CallOpts{Context: ctx, BlockNumber: new(big.Int).SetUint64(event.Raw.BlockNumber - 1)},
&bind.CallOpts{Context: ctx, BlockNumber: new(big.Int).SetUint64(event.Raw.BlockNumber)},
)
if err != nil {
return err
Expand Down

0 comments on commit eced566

Please sign in to comment.