Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Aug 8, 2023
1 parent 2be2739 commit fc48177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion contract/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ func TestContract_EIP1559(t *testing.T) {
assert.NoError(t, err)

assert.NotZero(t, txnObj.Gas)
assert.NotZero(t, txnObj.GasPrice)
assert.NotZero(t, txnObj.MaxFeePerGas)
assert.NotZero(t, txnObj.MaxPriorityFeePerGas)
}
4 changes: 3 additions & 1 deletion jsonrpc/eth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ func TestEthMaxPriorityFeePerGas(t *testing.T) {
require.Equal(t, uint64(1), receipt.Status)

newMaxPriorityFee, err := c.Eth().MaxPriorityFeePerGas()
t.Log(initialMaxPriorityFee)
t.Log(newMaxPriorityFee)
require.NoError(t, err)
require.True(t, initialMaxPriorityFee.Cmp(newMaxPriorityFee) < 0)
require.True(t, initialMaxPriorityFee.Cmp(newMaxPriorityFee) <= 0)
}

0 comments on commit fc48177

Please sign in to comment.