I'm having erc1155 smart contract which is using following base url: https://token-cdn-domain/{id}.json
. When i try to get the uri for token with id 5 for example i receive this: https://token-cdn-domain/5.json
but in ipfs they are stored with leading zero padded to 64 hex characters length and 5
looks like this 0000000000000000000000000000000000000000000000000000000000000005.json
any idea how to provide the correct uri?
Hello @Andon_Mitev
I have not tested, and I cannot guarantee that this would work, but have you tried this kind of python formating?
https://token-cdn-domain/{id:064}.json
Here is an implementation in JavaScript as well: