use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
61 stars 45 forks source link

fix: blank page when using already onchain contract #436

Closed peetzweg closed 1 year ago

peetzweg commented 1 year ago

related to #412

I was able to find the problematic call. Not too sure how to solve it. Might be an withing the @polkadotjs/types packages. Not an expert yet at all at this, feels like it's struggeling to resolves this quite complex return value.

Catching the exception at least allows the Interaction tab to be rendered.

registry.createTypeUnsafe(returnTypeName, [result.asOk.data]).toHuman()

Result<Result<Vec<u128>, UniswapV2RouterRouterError>, InkPrimitivesLangError>

Error: createType(Result<Result<Vec<u128>, UniswapV2RouterRouterError>, InkPrimitivesLangError>):: Unable to create Enum via index 14, in __Unused0, CouldNotReadInput
Screenshot 2023-03-16 at 16 00 50
netlify[bot] commented 1 year ago

Deploy Preview for contracts-ui ready!

Name Link
Latest commit 0bff444c641fe93e82bba96c31ce02f280751340
Latest deploy log https://app.netlify.com/sites/contracts-ui/deploys/641aecd1142b940008cd39f5
Deploy Preview https://deploy-preview-436--contracts-ui.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.