Commit 3d03f5f7 authored by Maurelian's avatar Maurelian Committed by GitHub

feat: log diff in interfaces check (#12757)

parent dead005d
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"log"
"os" "os"
"path/filepath" "path/filepath"
"runtime" "runtime"
...@@ -301,6 +302,7 @@ func compareABIs(abi1, abi2 json.RawMessage) (bool, error) { ...@@ -301,6 +302,7 @@ func compareABIs(abi1, abi2 json.RawMessage) (bool, error) {
// Compare using go-cmp // Compare using go-cmp
diff := cmp.Diff(data1, data2) diff := cmp.Diff(data1, data2)
if diff != "" { if diff != "" {
log.Printf("ABI diff: %s", diff)
return false, nil return false, nil
} }
return true, nil return true, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment