fix: change to parsing MetadataExtensionUpdateCID via bytes
This commit is contained in:
parent
4b6f71ea1a
commit
1c8efbfba8
|
@ -104,8 +104,7 @@ func (em *ExtraMetadata) decodeItem(pair keyValue) error {
|
|||
}
|
||||
|
||||
if metadataKey == int(types.MetadataExtensionUpdateCID) {
|
||||
// Convert string to CID bytes for MetadataExtensionUpdateCID
|
||||
cid, err := encoding.CIDFromString(pair.Value.(string))
|
||||
cid, err := encoding.CIDFromBytes([]byte(pair.Value.(string)))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue