From ff8cbc23f95574a6d96dd552cb83cef8f921e4f5 Mon Sep 17 00:00:00 2001 From: freddie Date: Mon, 18 Nov 2024 17:44:28 +0800 Subject: [PATCH] lowercase callType --- eth/tracers/api_trace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/tracers/api_trace.go b/eth/tracers/api_trace.go index d04734a83..885ad4a0f 100644 --- a/eth/tracers/api_trace.go +++ b/eth/tracers/api_trace.go @@ -21,6 +21,7 @@ import ( "errors" "fmt" "math/big" + "strings" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" @@ -175,7 +176,7 @@ func (api *TraceAPI) Filter(ctx context.Context, req *types.TraceFilterRequest) trace.Type = "call" trace.Action = types.CallTraceAction{ From: action.From, - CallType: action.OpCode, + CallType: strings.ToLower(action.OpCode), Gas: *gas, Input: action.Input, To: action.To,