Skip to content

Commit

Permalink
Merge pull request #7 from light-scale/feat/add-mint-to-transaction-t…
Browse files Browse the repository at this point in the history
…race

feat: add Mint to TransactionTrace
  • Loading branch information
chokobole authored Jan 19, 2023
2 parents f02a857 + cac436c commit 4f145df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/types/l2trace_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type TransactionTrace struct {
From common.Address `json:"from"`
To *common.Address `json:"to"`
ChainId *hexutil.Big `json:"chainId"`
Mint *hexutil.Big `json:"mint"`
Value *hexutil.Big `json:"value"`
Data string `json:"data"`
IsCreate bool `json:"isCreate"`
Expand Down Expand Up @@ -72,6 +73,7 @@ func newTraceTransaction(tx *Transaction, blockNumber uint64, config *params.Cha
Gas: tx.Gas(),
GasPrice: (*hexutil.Big)(tx.GasPrice()),
To: tx.To(),
Mint: (*hexutil.Big)(tx.Mint()),
Value: (*hexutil.Big)(tx.Value()),
Data: hexutil.Encode(tx.Data()),
IsCreate: tx.To() == nil,
Expand Down

0 comments on commit 4f145df

Please sign in to comment.