Skip to content

Commit

Permalink
Add missing chainID field on legacy tx marshaling
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy committed Sep 12, 2024
1 parent e470607 commit d198036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/celo_transaction_marshalling.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func celoTransactionMarshal(tx *Transaction) ([]byte, bool, error) {
enc.V = (*hexutil.Big)(itx.V)
enc.R = (*hexutil.Big)(itx.R)
enc.S = (*hexutil.Big)(itx.S)
if tx.Protected() {
enc.ChainID = (*hexutil.Big)(tx.ChainId())
}
// Celo specific fields
enc.FeeCurrency = itx.FeeCurrency
enc.GatewayFee = (*hexutil.Big)(itx.GatewayFee)
Expand Down

0 comments on commit d198036

Please sign in to comment.