From 09dc7e278fba5c971232f2ee8f4e57080e260d1d Mon Sep 17 00:00:00 2001 From: Fergal Gribben Date: Mon, 1 Jul 2024 13:55:34 +0100 Subject: [PATCH] WIP specify block 0 --- .../ocr2/plugins/ocr2keeper/evmregistry/v20/registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v20/registry.go b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v20/registry.go index ce7325a96be..5d149c2972f 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v20/registry.go +++ b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v20/registry.go @@ -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 { @@ -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) }