Update api_test.go

This commit is contained in:
Lorden 2025-10-30 14:29:16 +01:00 committed by GitHub
parent 243407a3aa
commit fc5a89b941
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -785,7 +785,7 @@ func TestEstimateGas(t *testing.T) {
blockNumber: rpc.LatestBlockNumber,
call: TransactionArgs{},
overrides: override.StateOverride{
randomAccounts[0].addr: override.OverrideAccount{Balance: newRPCBalance(new(big.Int).Mul(big.NewInt(1), big.NewInt(params.Ether)))},
randomAccounts[0].addr: override.OverrideAccount{Balance: newRPCBalance(big.NewInt(params.Ether))},
},
expectErr: nil,
want: 53000,
@ -1091,7 +1091,7 @@ func TestCall(t *testing.T) {
Value: (*hexutil.Big)(big.NewInt(1000)),
},
overrides: override.StateOverride{
randomAccounts[0].addr: override.OverrideAccount{Balance: newRPCBalance(new(big.Int).Mul(big.NewInt(1), big.NewInt(params.Ether)))},
randomAccounts[0].addr: override.OverrideAccount{Balance: newRPCBalance(big.NewInt(params.Ether))},
},
want: "0x",
},