replace CIDFromJSONBytes (#97)

* replace fn

* fix unit test CID

* rename func
This commit is contained in:
Murali Krishna Komatireddy
2023-03-14 11:21:23 +05:30
committed by GitHub
parent 5f6a9f56bb
commit 42fdc97c1c
3 changed files with 17 additions and 27 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func UnMarshalMapFromJSONBytes(bytes []byte) map[string]interface{} {
// GetCid gets the content ID.
func GetCid(content []byte) (string, error) {
return wnsUtils.CIDFromJSONBytesUsingIpldPrime(content)
return wnsUtils.CIDFromJSONBytes(content)
}
// BytesToBase64 encodes a byte array as a base64 string.