Skip to content

Commit

Permalink
WIP specify block 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jul 1, 2024
1 parent 3f8c00a commit 09dc7e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (r *EvmRegistry) addToActive(ctx context.Context, id *big.Int, force bool)
func (r *EvmRegistry) buildCallOpts(ctx context.Context, block *big.Int) (*bind.CallOpts, error) {
opts := bind.CallOpts{
Context: ctx,
BlockNumber: nil,
BlockNumber: block,
}

if block == nil || block.Int64() == 0 {
Expand Down Expand Up @@ -716,7 +716,7 @@ func (r *EvmRegistry) getUpkeepConfigs(ctx context.Context, ids []*big.Int) ([]a
)

for i, id := range ids {
opts, err := r.buildCallOpts(ctx, nil)
opts, err := r.buildCallOpts(ctx, big.NewInt(0))
if err != nil {
return nil, fmt.Errorf("failed to get call opts: %s", err)
}
Expand Down

0 comments on commit 09dc7e2

Please sign in to comment.