From 0960719cfd2d6520a1a6effc93f3df3261a7bacf Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Tue, 15 Feb 2022 23:06:36 -0600 Subject: [PATCH] Fix unit tests to account for estimation padding --- ethclient/ethclient_test.go | 2 +- graphql/graphql_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go index d56febc91..70d1955c2 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -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 diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index 4e0f099e4..72b36c025 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -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