Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Returning a value wrapped in option from a message results in error #84

Closed
JayPavlina opened this issue Apr 8, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@JayPavlina
Copy link

Returning a value wrapped in an option results in the following error:

Uncaught error. Something went wrong with the query and rendering of this component. createType(Option):: Cannot construct unknown type Option

If the value is None, there is no error. It only happens when it is Some.

To reproduce, run the ink erc721 example. Call mint on a token ID. Then call owner_of on the same token ID you just minted.

@cmichi cmichi added the bug Something isn't working label Jun 18, 2021
@cmichi
Copy link

cmichi commented Jun 18, 2021

I just ran into this as well with the most recent version of the canvas-ui. So the bug still exists.

Edit: Just tried in polkadot-js and it works fine there.

@cmichi
Copy link

cmichi commented Jul 6, 2021

Closed via #106.

@cmichi cmichi closed this as completed Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants