Skip to content

Commit

Permalink
Add assertions for gas price (it should be 0 for dynamic fee tx)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Aug 8, 2023
1 parent fc48177 commit 5f4cedb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contract/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f4cedb

Please sign in to comment.