Skip to content

Commit

Permalink
Merge pull request #11152 from filecoin-project/steb/eth-gateway-filt…
Browse files Browse the repository at this point in the history
…er-id-error

fix: gateway: return an error when an Eth filter is not found
  • Loading branch information
arajasek authored Aug 9, 2023
2 parents 9310cd6 + a626b3e commit bcde3bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateway/proxy_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bcde3bd

Please sign in to comment.