Skip to content

Commit

Permalink
feat(turbo/jsonrpc): createType -> creationMethod
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Dec 9, 2024
1 parent 5fc9a38 commit ae102fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion turbo/jsonrpc/gen_traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func TestGeneratedTraceApiCollision(t *testing.T) {
{
"action": {
"from": "0x000000000000000000000000000000000000bbbb",
"createType": "create2",
"creationMethod": "create2",
"gas": "0xb49d",
"init": "0x600360035560046004556158ff6000526002601ef3",
"value": "0x0"
Expand Down
2 changes: 1 addition & 1 deletion turbo/jsonrpc/trace_adhoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
10 changes: 5 additions & 5 deletions turbo/jsonrpc/trace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ae102fd

Please sign in to comment.