From 1a9631052614b7d3bf8bd9eeb20d84489a0e93b1 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 14 Oct 2024 16:46:05 +0800 Subject: [PATCH] fix(tracers/native): set CreationMethod Signed-off-by: jsvisa --- eth/tracers/native/call_flat.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/eth/tracers/native/call_flat.go b/eth/tracers/native/call_flat.go index b7cc60b096..ba1f9e04f7 100644 --- a/eth/tracers/native/call_flat.go +++ b/eth/tracers/native/call_flat.go @@ -296,10 +296,11 @@ func newFlatCreate(input *callFrame) *flatCallFrame { return &flatCallFrame{ Type: strings.ToLower(vm.CREATE.String()), Action: flatCallAction{ - From: &input.From, - Gas: &input.Gas, - Value: input.Value, - Init: &actionInit, + CreationMethod: strings.ToLower(vm.OpCode(input.Type).String()), + From: &input.From, + Gas: &input.Gas, + Value: input.Value, + Init: &actionInit, }, Result: &flatCallResult{ GasUsed: &input.GasUsed,