mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +00:00
refactor: rename NewTraceTransaction to NewTransactionData (#190)
rename NewTraceTransaction to NewTransactionData
This commit is contained in:
parent
016b30eb7d
commit
804e7edc23
2 changed files with 3 additions and 3 deletions
|
|
@ -165,9 +165,9 @@ type TransactionData struct {
|
|||
S *hexutil.Big `json:"s"`
|
||||
}
|
||||
|
||||
// NewTraceTransaction returns a transaction that will serialize to the trace
|
||||
// NewTransactionData returns a transaction that will serialize to the trace
|
||||
// representation, with the given location metadata set (if available).
|
||||
func NewTraceTransaction(tx *Transaction, blockNumber uint64, config *params.ChainConfig) *TransactionData {
|
||||
func NewTransactionData(tx *Transaction, blockNumber uint64, config *params.ChainConfig) *TransactionData {
|
||||
signer := MakeSigner(config, big.NewInt(0).SetUint64(blockNumber))
|
||||
from, _ := Sender(signer, tx)
|
||||
v, r, s := tx.RawSignatureValues()
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ func (api *API) fillBlockTrace(env *traceEnv, block *types.Block) (*types.BlockT
|
|||
|
||||
txs := make([]*types.TransactionData, block.Transactions().Len())
|
||||
for i, tx := range block.Transactions() {
|
||||
txs[i] = types.NewTraceTransaction(tx, block.NumberU64(), api.backend.ChainConfig())
|
||||
txs[i] = types.NewTransactionData(tx, block.NumberU64(), api.backend.ChainConfig())
|
||||
}
|
||||
|
||||
blockTrace := &types.BlockTrace{
|
||||
|
|
|
|||
Loading…
Reference in a new issue