From 485d161a5edc3de0f3bac156c43f57795c14b29c Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Thu, 8 Dec 2022 12:30:42 +0000 Subject: [PATCH] Use correct field for upper epoch range in EthGetLogs --- node/impl/full/eth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index 5f913995f..a49aa3d2d 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -783,7 +783,7 @@ func (e *EthEvent) installEthFilterSpec(ctx context.Context, filterSpec *api.Eth } else if *filterSpec.ToBlock == "pending" { return nil, api.ErrNotSupported } else { - epoch, err := api.EthUint64FromHex(*filterSpec.FromBlock) + epoch, err := api.EthUint64FromHex(*filterSpec.ToBlock) if err != nil { return nil, xerrors.Errorf("invalid epoch") }