mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Revert "eth/tracers: rm the flatCall's notused CreationMethod"
This reverts commit 2792a54adeb02032f7eace0032755c9225f75fa5. Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
e0d0266ba3
commit
351e01ff58
2 changed files with 7 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ type flatCallAction struct {
|
|||
SelfDestructed *common.Address `json:"address,omitempty"`
|
||||
Balance *big.Int `json:"balance,omitempty"`
|
||||
CallType string `json:"callType,omitempty"`
|
||||
CreationMethod string `json:"creationMethod,omitempty"`
|
||||
From *common.Address `json:"from,omitempty"`
|
||||
Gas *uint64 `json:"gas,omitempty"`
|
||||
Init *[]byte `json:"init,omitempty"`
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ func (f flatCallAction) MarshalJSON() ([]byte, error) {
|
|||
SelfDestructed *common.Address `json:"address,omitempty"`
|
||||
Balance *hexutil.Big `json:"balance,omitempty"`
|
||||
CallType string `json:"callType,omitempty"`
|
||||
CreationMethod string `json:"creationMethod,omitempty"`
|
||||
From *common.Address `json:"from,omitempty"`
|
||||
Gas *hexutil.Uint64 `json:"gas,omitempty"`
|
||||
Init *hexutil.Bytes `json:"init,omitempty"`
|
||||
|
|
@ -34,6 +35,7 @@ func (f flatCallAction) MarshalJSON() ([]byte, error) {
|
|||
enc.SelfDestructed = f.SelfDestructed
|
||||
enc.Balance = (*hexutil.Big)(f.Balance)
|
||||
enc.CallType = f.CallType
|
||||
enc.CreationMethod = f.CreationMethod
|
||||
enc.From = f.From
|
||||
enc.Gas = (*hexutil.Uint64)(f.Gas)
|
||||
enc.Init = (*hexutil.Bytes)(f.Init)
|
||||
|
|
@ -52,6 +54,7 @@ func (f *flatCallAction) UnmarshalJSON(input []byte) error {
|
|||
SelfDestructed *common.Address `json:"address,omitempty"`
|
||||
Balance *hexutil.Big `json:"balance,omitempty"`
|
||||
CallType *string `json:"callType,omitempty"`
|
||||
CreationMethod *string `json:"creationMethod,omitempty"`
|
||||
From *common.Address `json:"from,omitempty"`
|
||||
Gas *hexutil.Uint64 `json:"gas,omitempty"`
|
||||
Init *hexutil.Bytes `json:"init,omitempty"`
|
||||
|
|
@ -79,6 +82,9 @@ func (f *flatCallAction) UnmarshalJSON(input []byte) error {
|
|||
if dec.CallType != nil {
|
||||
f.CallType = *dec.CallType
|
||||
}
|
||||
if dec.CreationMethod != nil {
|
||||
f.CreationMethod = *dec.CreationMethod
|
||||
}
|
||||
if dec.From != nil {
|
||||
f.From = dec.From
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue