Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit d29fb12

Browse files
author
Jeannette
committed
Remove concept of Public from FilterApi
1 parent ac9a819 commit d29fb12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eth/filters/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (api *FilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, error) {
230230
return rpcSub, nil
231231
}
232232

233-
func (api *PublicFilterAPI) NewStateChanges(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) {
233+
func (api *FilterAPI) NewStateChanges(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) {
234234
notifier, supported := rpc.NotifierFromContext(ctx)
235235
if !supported {
236236
return &rpc.Subscription{}, rpc.ErrNotificationsUnsupported

eth/filters/filter_system_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ func TestStateChangeSubscription(t *testing.T) {
749749
var (
750750
db = rawdb.NewMemoryDatabase()
751751
backend = &testBackend{db: db}
752-
api = NewPublicFilterAPI(backend, false, deadline)
752+
api = NewFilterAPI(backend, false, deadline)
753753
genesis = (&core.Genesis{BaseFee: big.NewInt(params.InitialBaseFee)}).MustCommit(db)
754754
numberOfBlocks = 3
755755
chain, _ = core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), db, numberOfBlocks, func(i int, gen *core.BlockGen) {})

0 commit comments

Comments
 (0)