fix(trace): rename BlockTrace.Transaction to BlockTrace.Transactions (#47)

This commit is contained in:
HAOYUatHZ 2022-03-18 11:24:57 +08:00 committed by GitHub
parent 3b4875c0d5
commit 9fb413d702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ type BlockTrace struct {
BaseFee *big.Int `json:"baseFee"` BaseFee *big.Int `json:"baseFee"`
Coinbase common.Address `json:"coinbase"` Coinbase common.Address `json:"coinbase"`
Time uint64 `json:"time"` Time uint64 `json:"time"`
Transaction []*TransactionTrace `json:"transaction"` Transactions []*TransactionTrace `json:"transactions"`
} }
type TransactionTrace struct { type TransactionTrace struct {
@ -49,7 +49,7 @@ func NewTraceBlock(config *params.ChainConfig, block *Block) *BlockTrace {
BaseFee: block.BaseFee(), BaseFee: block.BaseFee(),
Coinbase: block.Coinbase(), Coinbase: block.Coinbase(),
Time: block.Time(), Time: block.Time(),
Transaction: txs, Transactions: txs,
} }
} }