From e0d0266ba32f22ede884172848ea3f82795e366f Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 3 Oct 2024 07:52:39 +0800 Subject: [PATCH] eth/tracers: rm the flatCall's notused CreationMethod Signed-off-by: jsvisa --- eth/tracers/native/call_flat.go | 1 - eth/tracers/native/gen_flatcallaction_json.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/eth/tracers/native/call_flat.go b/eth/tracers/native/call_flat.go index b7cc60b096..14fe124eec 100644 --- a/eth/tracers/native/call_flat.go +++ b/eth/tracers/native/call_flat.go @@ -79,7 +79,6 @@ 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"` diff --git a/eth/tracers/native/gen_flatcallaction_json.go b/eth/tracers/native/gen_flatcallaction_json.go index c075606983..cb6b465aba 100644 --- a/eth/tracers/native/gen_flatcallaction_json.go +++ b/eth/tracers/native/gen_flatcallaction_json.go @@ -20,7 +20,6 @@ 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"` @@ -35,7 +34,6 @@ 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) @@ -54,7 +52,6 @@ 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"` @@ -82,9 +79,6 @@ 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 }