From 5f4cedb337544b991569e7d78882f5a0592e3c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Tue, 8 Aug 2023 13:50:15 +0200 Subject: [PATCH] Add assertions for gas price (it should be 0 for dynamic fee tx) --- contract/contract_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contract/contract_test.go b/contract/contract_test.go index f0f1d90d..ae631d07 100644 --- a/contract/contract_test.go +++ b/contract/contract_test.go @@ -294,6 +294,7 @@ func TestContract_EIP1559(t *testing.T) { txnObj, err := client.Eth().GetTransactionByHash(txn.Hash()) assert.NoError(t, err) + assert.Zero(t, txnObj.GasPrice) assert.NotZero(t, txnObj.Gas) assert.NotZero(t, txnObj.MaxFeePerGas) assert.NotZero(t, txnObj.MaxPriorityFeePerGas)