fix: change to parsing MetadataExtensionUpdateCID via bytes

This commit is contained in:
Derrick Hammer 2024-03-01 03:41:05 -05:00
parent 4b6f71ea1a
commit 1c8efbfba8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ func (em *ExtraMetadata) decodeItem(pair keyValue) error {
} }
if metadataKey == int(types.MetadataExtensionUpdateCID) { if metadataKey == int(types.MetadataExtensionUpdateCID) {
// Convert string to CID bytes for MetadataExtensionUpdateCID cid, err := encoding.CIDFromBytes([]byte(pair.Value.(string)))
cid, err := encoding.CIDFromString(pair.Value.(string))
if err != nil { if err != nil {
return err return err
} }