diff --git a/gateway/proxy_eth.go b/gateway/proxy_eth.go index a07ead16cf3..e5954c2ff00 100644 --- a/gateway/proxy_eth.go +++ b/gateway/proxy_eth.go @@ -16,6 +16,7 @@ import ( "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/lotus/api" + "github.com/filecoin-project/lotus/chain/events/filter" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/chain/types/ethtypes" ) @@ -427,7 +428,7 @@ func (gw *Node) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID ft.lk.Unlock() if !ok { - return nil, nil + return nil, filter.ErrFilterNotFound } return gw.target.EthGetFilterChanges(ctx, id)