From 18bdd57b82f79c273acb4f776d3c6698c5b8cc6e Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Tue, 16 Mar 2021 14:21:17 +0100 Subject: [PATCH] fix eth/filters --- eth/filters/filter_system_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 6f90c408c..566b9ceb1 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -629,7 +629,7 @@ func TestPendingTxFilterDeadlock(t *testing.T) { timeout := 100 * time.Millisecond var ( - db = rawdb.NewMemoryDatabase() + db = ethdb.NewMemoryDatabase() backend = &testBackend{db: db} api = NewPublicFilterAPI(backend, false, timeout) done = make(chan struct{}) @@ -645,7 +645,7 @@ func TestPendingTxFilterDeadlock(t *testing.T) { default: } - tx := types.NewTransaction(i, common.HexToAddress("0xb794f5ea0ba39494ce83a213fffba74279579268"), new(big.Int), 0, new(big.Int), nil) + tx := types.NewTransaction(i, common.HexToAddress("0xb794f5ea0ba39494ce83a213fffba74279579268"), uint256.NewInt(), 0, uint256.NewInt(), nil) backend.txFeed.Send(core.NewTxsEvent{Txs: []*types.Transaction{tx}}) i++ }