solana-mobile / Minty-fresh

An open source mobile first implementation of NFT minting on solana
https://solanamobile.com/
Apache License 2.0
45 stars 18 forks source link

Fix Protobuf link name size #383

Closed Funkatronics closed 1 year ago

Funkatronics commented 1 year ago

Summary

Size calculation for the protobuf file links name field was incorrect, it was using the string character length instead of the encoded bytes length

NFT titles with 16bit characters would cause an 500 when uploading the files due to the protobuf encoding error

Testing

https://explorer.solana.com/address/8gvxxUC3BCYYbQixkfXpcg45YacQsZPrH1wMNaGmtJ9q/metadata?cluster=devnet