Skip to content

Commit

Permalink
lowercase callType
Browse files Browse the repository at this point in the history
  • Loading branch information
freddie committed Nov 18, 2024
1 parent ba54b66 commit ff8cbc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/tracers/api_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"errors"
"fmt"
"math/big"
"strings"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ff8cbc2

Please sign in to comment.