integritee-network / incognitee-campaign-page

https://try.incognitee.io
0 stars 1 forks source link

polkadot-js api won't connect to Paseo: Cannot convert 'Composite' via asVariant #3

Closed brenzi closed 5 months ago

brenzi commented 5 months ago

image

I know it did connect successfully at some point when I added incognitee and paseo apis, but I couldn't reproduce the state where paseo connected.

things that may be related:

relevant changes: https://github.com/integritee-network/incognitee-campaign-page/pull/1/commits/1aa5bfd8e78de51bf1d56a10296ea0cd201d8f76

brenzi commented 5 months ago

KodaDot is built with nuxt as well, so it works there: https://github.com/kodadot/nft-gallery/tree/166636ab659e42bf0ad5544687f39d92d07bcf77

brenzi commented 5 months ago

don't understand why, but it is solved by this: https://github.com/integritee-network/incognitee-campaign-page/pull/5/commits/a31f20ef01d47f8cc39a5fb1ceb43832e863dbc0

brenzi commented 5 months ago

the problem seems to be that we just can't use Pinia to store the api in a store. this error appears whenever we expect to assign any polkadot-api type to a store value

workaround: instantiate new api where needed