You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("failed to decode result into struct, err: %w", err)
66
66
}
67
+
68
+
// check that blob data is not empty
69
+
iflen(result.Data) <2 {
70
+
returnnil, fmt.Errorf("blob data is too short to be valid, expected at least 2 characters, got: %s, versioned hash: %s", result.Data, versionedHash.String())
71
+
}
72
+
67
73
blobBytes, err:=hex.DecodeString(result.Data[2:])
68
74
iferr!=nil {
69
75
returnnil, fmt.Errorf("failed to decode data to bytes, err: %w", err)
returnnil, fmt.Errorf("failed to decode result into struct, err: %w", err)
61
61
}
62
+
63
+
// check that blob data is not empty
64
+
iflen(result.Blob.Data) <2 {
65
+
returnnil, fmt.Errorf("blob data is too short to be valid, expected at least 2 characters, got: %s, versioned hash: %s", result.Blob.Data, versionedHash.String())
0 commit comments