Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Sep 14, 2024
1 parent 367bc8f commit 9d7ecad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action/tx_dynamic_fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestDynamicFeeTxSelf(t *testing.T) {
r.Equal(uint64(4), tx.Gas())
}

func TestDynamicFeeTxConvertion(t *testing.T) {
func TestDynamicFeeTxFromEth(t *testing.T) {
r := require.New(t)
acl := types.AccessList{
{Address: common.HexToAddress("0x1"), StorageKeys: []common.Hash{common.HexToHash("0x2")}},
Expand All @@ -90,4 +90,8 @@ func TestDynamicFeeTxConvertion(t *testing.T) {
gasFeeCap: big.NewInt(5),
accessList: acl,
}, tx.(*envelope).common)
tx.Proto()
tx2 := &envelope{}
r.NoError(tx2.LoadProto(tx.Proto()))
r.Equal(tx, tx2)
}

0 comments on commit 9d7ecad

Please sign in to comment.