Fix unit tests to account for estimation padding

This commit is contained in:
Shane Bammel 2022-02-15 23:06:36 -06:00
parent 94fe5c195a
commit 0960719cfd
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ func testCallContract(t *testing.T, client *rpc.Client) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
if gas != 21000 {
if gas != 25200 {
t.Fatalf("unexpected gas price: %v", gas)
}
// CallContract

View File

@ -134,7 +134,7 @@ func TestGraphQLBlockSerialization(t *testing.T) {
// should return `estimateGas` as decimal
{
body: `{"query": "{block{ estimateGas(data:{}) }}"}`,
want: `{"data":{"block":{"estimateGas":53000}}}`,
want: `{"data":{"block":{"estimateGas":63600}}}`,
code: 200,
},
// should return `status` as decimal