Use correct field for upper epoch range in EthGetLogs

This commit is contained in:
Ian Davis 2022-12-08 12:30:42 +00:00
parent 266492fa1c
commit 485d161a5e

View File

@ -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")
}