polkadot-js / apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
https://dotapps.io
Apache License 2.0
1.73k stars 1.52k forks source link

Contracts Tab shows uncaught error #9907

Open tadeohepperle opened 10 months ago

tadeohepperle commented 10 months ago

What is the current behavior and expected behavior?

Current behavior:

When running a substrate-contracts-node locally and navigating to the Contracts tab, this is shown:

image

Uncaught error. Something went wrong with the query and rendering of this component. Please supply all the details below when logging an issue, it may help in tracing the cause.

Cannot read properties of undefined (reading 'keys')

TypeError: Cannot read properties of undefined (reading 'keys')
at https://polkadot.js.org/apps/page.52e72cfdfbfee15a.js:739:5722
at os (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:106322)
at Bu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:126444)
at https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125186
at Cu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125251)
at uu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:119007)
at $o (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:59735)
at https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:116412

Expected behavior: I could think of multiple solutions:

What is the motivation for changing the behavior?

It would be nice, to not have an uncaught exception displayed anymore :)

Please tell us about your environment:

I setup the contracts-node locally which is mentioned in the substrate smart contracts documentation.

I installed it with:

cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git

I ran it with:

substrate-contracts-node --log info,runtime::contracts=debug 2>&1
wottpal commented 9 months ago

We're able to find a work around or the reason for this issue? We're having it as well :/

vampik33 commented 9 months ago

@tadeohepperle The issue was resolved in: https://github.com/polkadot-js/apps/issues/9901

Please try with the latest changes from master branch.