Skip to content

Commit a746c82

Browse files
committed
Improve logic for detecting the default tracer config
1 parent 71e61e4 commit a746c82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/debug.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"fmt"
77
"math/big"
8-
"slices"
8+
"strings"
99

1010
"github.com/goccy/go-json"
1111
"github.com/onflow/flow-go/fvm/evm/offchain/query"
@@ -480,6 +480,6 @@ func isDefaultCallTracer(config *tracers.TraceConfig) bool {
480480
return false
481481
}
482482

483-
tracerConfig := json.RawMessage(replayer.TracerConfig)
484-
return slices.Equal(config.TracerConfig, tracerConfig)
483+
trimmedConfig := strings.ReplaceAll(string(config.TracerConfig), " ", "")
484+
return trimmedConfig == replayer.TracerConfig
485485
}

0 commit comments

Comments
 (0)