Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 9, 2024
1 parent 7be51c6 commit c45c453
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ethergo/util/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ func TestTxToCall(t *testing.T) {
Equal(t, mockTxAsCall.From, acct.Address)
Equal(t, mockTxAsCall.To, mockedSignedTx.To())
Equal(t, mockTxAsCall.Gas, mockedSignedTx.Gas())
Equal(t, mockTxAsCall.GasPrice, mockedSignedTx.GasPrice())
Equal(t, mockTxAsCall.Data, mockedSignedTx.Data())
Equal(t, mockTxAsCall.AccessList, mockedSignedTx.AccessList())
Equal(t, mockTxAsCall.GasFeeCap, mockedSignedTx.GasFeeCap())
Equal(t, mockTxAsCall.GasTipCap, mockedSignedTx.GasTipCap())

if mockedSignedTx.Type() == types.LegacyTxType {
Equal(t, mockTxAsCall.GasPrice, mockedSignedTx.GasPrice())
} else {
Equal(t, mockTxAsCall.GasFeeCap, mockedSignedTx.GasFeeCap())
Equal(t, mockTxAsCall.GasTipCap, mockedSignedTx.GasTipCap())
}
}
}
}

0 comments on commit c45c453

Please sign in to comment.