Our metadata as a CIP 25 looks like this: Pool pm metadata tool
We are using Lucid to attach it during transaction building in this way:
const filename= "https://arweave.net/" + arweaveId
const metadata = {
[policyId]: {
"Origin Certificate": {
"description": [
"Village": "Los Hornos, Comayagua",
"Country": "Honduras",
"Grower": "Nelvin Humberto Vaquis",
"SCA Grade": "85",
"Altitude": "5245 ft",
"Variety": "Parainema, PACA, & H-90",
"Characteristic": Citrus Flavor, Floral Tones",
"Bean": Medium Complexion"
],
"files": [
{
"mediaType": "image/png",
"name": "Origin Certificate",
"src": filename
}
],
"image": filename,
"mediaType": "image/png",
"name": "Origin Certificate"
}
},
version: "1.0"
};
But something exceeds the character limit even though none of the strings exceed 64 characters. Also, removing the quotation marks removes the error about the character limit but the metadata doesn't format correctly. To attach the metadata we do the following:
.attachMetadata(721, metadata)
What could we change to eliminate the issue?