rollback unexpected changes

This commit is contained in:
georgehao 2025-03-23 00:02:51 +08:00
parent 85913cfb3c
commit 9b2c49571f
No known key found for this signature in database

View file

@ -64,16 +64,10 @@ func newTestBackend(t *testing.T) (*node.Node, []*types.Block) {
t.Fatalf("can't create new ethereum service: %v", err) t.Fatalf("can't create new ethereum service: %v", err)
} }
filterSystem := filters.NewFilterSystem(ethservice.APIBackend, filters.Config{}) filterSystem := filters.NewFilterSystem(ethservice.APIBackend, filters.Config{})
n.RegisterAPIs([]rpc.API{ n.RegisterAPIs([]rpc.API{{
{ Namespace: "eth",
Namespace: "eth", Service: filters.NewFilterAPI(filterSystem),
Service: filters.NewFilterAPI(filterSystem), }})
},
{
Namespace: "eth",
Service: ethservice.APIBackend,
},
})
// Import the test chain. // Import the test chain.
if err := n.Start(); err != nil { if err := n.Start(); err != nil {
@ -186,13 +180,11 @@ func testAccessList(t *testing.T, client *rpc.Client) {
}{ }{
{ // Test transfer { // Test transfer
msg: ethereum.CallMsg{ msg: ethereum.CallMsg{
From: testAddr, From: testAddr,
To: &common.Address{}, To: &common.Address{},
Gas: 21000, Gas: 21000,
GasPrice: big.NewInt(875000000), GasPrice: big.NewInt(875000000),
Value: big.NewInt(1), Value: big.NewInt(1),
GasFeeCap: nil,
GasTipCap: nil,
}, },
wantGas: 21000, wantGas: 21000,
wantAL: `[]`, wantAL: `[]`,