Skip to content

Commit

Permalink
refactor: change tx type codes
Browse files Browse the repository at this point in the history
  • Loading branch information
paologalligit committed Dec 17, 2024
1 parent fbdc745 commit 750bb4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tx/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ var (
errEmptyTypedTx = errors.New("empty typed transaction bytes")
)

// Starting from the max value allowed to avoid ambiguity with Ethereum tx type codes.
const (
LegacyTxType = 0x00
DynamicFeeTxType = 0x01
LegacyTxType = 0x7f
DynamicFeeTxType = 0x7e
)

// Transaction is an immutable tx type.
Expand Down

0 comments on commit 750bb4b

Please sign in to comment.