From 9b2c49571f77024509bb56d0cd16f8883a3638a4 Mon Sep 17 00:00:00 2001 From: georgehao Date: Sun, 23 Mar 2025 00:02:51 +0800 Subject: [PATCH] rollback unexpected changes --- ethclient/gethclient/gethclient_test.go | 26 +++++++++---------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/ethclient/gethclient/gethclient_test.go b/ethclient/gethclient/gethclient_test.go index e5341e9c21..83b2921dd3 100644 --- a/ethclient/gethclient/gethclient_test.go +++ b/ethclient/gethclient/gethclient_test.go @@ -64,16 +64,10 @@ func newTestBackend(t *testing.T) (*node.Node, []*types.Block) { t.Fatalf("can't create new ethereum service: %v", err) } filterSystem := filters.NewFilterSystem(ethservice.APIBackend, filters.Config{}) - n.RegisterAPIs([]rpc.API{ - { - Namespace: "eth", - Service: filters.NewFilterAPI(filterSystem), - }, - { - Namespace: "eth", - Service: ethservice.APIBackend, - }, - }) + n.RegisterAPIs([]rpc.API{{ + Namespace: "eth", + Service: filters.NewFilterAPI(filterSystem), + }}) // Import the test chain. if err := n.Start(); err != nil { @@ -186,13 +180,11 @@ func testAccessList(t *testing.T, client *rpc.Client) { }{ { // Test transfer msg: ethereum.CallMsg{ - From: testAddr, - To: &common.Address{}, - Gas: 21000, - GasPrice: big.NewInt(875000000), - Value: big.NewInt(1), - GasFeeCap: nil, - GasTipCap: nil, + From: testAddr, + To: &common.Address{}, + Gas: 21000, + GasPrice: big.NewInt(875000000), + Value: big.NewInt(1), }, wantGas: 21000, wantAL: `[]`,