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 (
"encoding/json"
"errors"
"fmt"
"log"
"os"
"path/filepath"
"runtime"
......@@ -301,6 +302,7 @@ func compareABIs(abi1, abi2 json.RawMessage) (bool, error) {
// Compare using go-cmp
diff := cmp.Diff(data1, data2)
if diff != "" {
log.Printf("ABI diff: %s", diff)
return false, 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