Closed lara-jeftic closed 10 months ago
If a token uri is a base64 encoded json, there is a chance the json string is incorrectly escaped and therefore unparseable. this PR attempts to parse the json and if it fails, it escapes the json correctly and then parses it.
see ticket here: (https://linear.app/ourzora/issue/CHAIN-790/move-token-uri-escaping-functionality-to-offchain-lib)
Description
If a token uri is a base64 encoded json, there is a chance the json string is incorrectly escaped and therefore unparseable. this PR attempts to parse the json and if it fails, it escapes the json correctly and then parses it.
Motivation and Context
see ticket here: (https://linear.app/ourzora/issue/CHAIN-790/move-token-uri-escaping-functionality-to-offchain-lib)
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: