Merge pull request #9815 from filecoin-project/issue/ref-fvm-1206

Use correct field for upper epoch range in EthGetLogs
This commit is contained in:
Aayush Rajasekaran 2022-12-08 09:19:10 -05:00 committed by GitHub
commit 616790bfa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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