diff --git a/turbo/jsonrpc/gen_traces_test.go b/turbo/jsonrpc/gen_traces_test.go index a8b88e2a123..7169f886f4c 100644 --- a/turbo/jsonrpc/gen_traces_test.go +++ b/turbo/jsonrpc/gen_traces_test.go @@ -327,7 +327,7 @@ func TestGeneratedTraceApiCollision(t *testing.T) { { "action": { "from": "0x000000000000000000000000000000000000bbbb", - "createType": "create2", + "creationMethod": "create2", "gas": "0xb49d", "init": "0x600360035560046004556158ff6000526002601ef3", "value": "0x0" diff --git a/turbo/jsonrpc/trace_adhoc.go b/turbo/jsonrpc/trace_adhoc.go index 7cc668ced62..83b38a9ecbf 100644 --- a/turbo/jsonrpc/trace_adhoc.go +++ b/turbo/jsonrpc/trace_adhoc.go @@ -355,7 +355,7 @@ func (ot *OeTracer) captureStartOrEnter(deep bool, typ vm.OpCode, from libcommon if create { action := CreateTraceAction{} action.From = from - action.CreateType = strings.ToLower(typ.String()) + action.CreationMethod = strings.ToLower(typ.String()) action.Gas.ToInt().SetUint64(gas) action.Init = libcommon.CopyBytes(input) action.Value.ToInt().Set(value.ToBig()) diff --git a/turbo/jsonrpc/trace_types.go b/turbo/jsonrpc/trace_types.go index 4d4e34b7fe3..f24242548bd 100644 --- a/turbo/jsonrpc/trace_types.go +++ b/turbo/jsonrpc/trace_types.go @@ -98,11 +98,11 @@ type CallTraceAction struct { } type CreateTraceAction struct { - From common.Address `json:"from"` - CreateType string `json:"createType"` - Gas hexutil.Big `json:"gas"` - Init hexutility.Bytes `json:"init"` - Value hexutil.Big `json:"value"` + From common.Address `json:"from"` + CreationMethod string `json:"creationMethod"` + Gas hexutil.Big `json:"gas"` + Init hexutility.Bytes `json:"init"` + Value hexutil.Big `json:"value"` } type SuicideTraceAction struct {