fix(tracers/native): set CreationMethod

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2024-10-14 16:46:05 +08:00
parent 351e01ff58
commit 1a96310526

View file

@ -296,10 +296,11 @@ func newFlatCreate(input *callFrame) *flatCallFrame {
return &flatCallFrame{ return &flatCallFrame{
Type: strings.ToLower(vm.CREATE.String()), Type: strings.ToLower(vm.CREATE.String()),
Action: flatCallAction{ Action: flatCallAction{
From: &input.From, CreationMethod: strings.ToLower(vm.OpCode(input.Type).String()),
Gas: &input.Gas, From: &input.From,
Value: input.Value, Gas: &input.Gas,
Init: &actionInit, Value: input.Value,
Init: &actionInit,
}, },
Result: &flatCallResult{ Result: &flatCallResult{
GasUsed: &input.GasUsed, GasUsed: &input.GasUsed,