fudgebucket27 / Lexplorer

Loopring explorer alternative
14 stars 10 forks source link

Fix NFT errors #243

Closed modersohn closed 1 year ago

modersohn commented 1 year ago

Fixes #242

  1. When adding exception message to NftMetaData.error, avoid adding the same error again and again. This is necessary because these errors are not cached so they will occur every time the page is loaded.
  2. When escaping a IPFS URL - which needs escaping - unescape it first, then escape again. Fixes partially escaped URLs. This makes NFT 0x17a84412503e323fb35a378d04a3dd16be46632c7b98db52082f40e369f84e47 work again.

Now there's only one special case left which we cannot handle: a unescaped URL using % and numbers as if it would be escaped. But that couldn't really be fixed by anyone. And strictly speaking these are all mint errors.

modersohn commented 1 year ago

Merging for tests on dev deployment.