mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
fix(trace): rename BlockTrace.Transaction to BlockTrace.Transactions (#47)
This commit is contained in:
parent
3b4875c0d5
commit
9fb413d702
1 changed files with 16 additions and 16 deletions
|
|
@ -16,7 +16,7 @@ type BlockTrace struct {
|
|||
BaseFee *big.Int `json:"baseFee"`
|
||||
Coinbase common.Address `json:"coinbase"`
|
||||
Time uint64 `json:"time"`
|
||||
Transaction []*TransactionTrace `json:"transaction"`
|
||||
Transactions []*TransactionTrace `json:"transactions"`
|
||||
}
|
||||
|
||||
type TransactionTrace struct {
|
||||
|
|
@ -49,7 +49,7 @@ func NewTraceBlock(config *params.ChainConfig, block *Block) *BlockTrace {
|
|||
BaseFee: block.BaseFee(),
|
||||
Coinbase: block.Coinbase(),
|
||||
Time: block.Time(),
|
||||
Transaction: txs,
|
||||
Transactions: txs,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue