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:
commit
616790bfa0
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user