Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when open "Developer -> Contracts" tab with polkadot-v1.0.0 based chain #9901

Closed
3 of 10 tasks
vampik33 opened this issue Sep 25, 2023 · 6 comments
Closed
3 of 10 tasks

Comments

@vampik33
Copy link
Contributor

  • I'm submitting a ...

    • Bug report
    • Feature request
    • Support request
    • Other
  • What is the current behavior and expected behavior?

Currently, when I tried to open "Developer -> Contracts" tab I have this error:

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 uu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:118745)
at $o (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:59735)
at https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125246
at Cu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125251)
at au (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:117748)
at _ (https://polkadot.js.org/apps/modu.5d78a093107b232f.js:2:63097)
at MessagePort.I (https://polkadot.js.org/apps/modu.5d78a093107b232f.js:2:63629)
  • Please tell us about your environment:

    • Version: n/a

    • Environment: Docker

      • Node.js
      • Browser
      • Other (limited support for other environments)
    • Language:

      • JavaScript
      • TypeScript (include tsc --version)
      • Other
  • Additional comments:

The error happens due to this line:

api.query.contracts.codeStorage

CodeStorage was deleted from contracts in this commit:
paritytech/substrate@ffbc02f

  • Possible solution(?):
    Replace codeStorage with pristineCode
@vampik33
Copy link
Contributor Author

Same error:
#9907

@wottpal
Copy link

wottpal commented Oct 11, 2023

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

@vampik33
Copy link
Contributor Author

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

I replaced codeStorage to pristineCode in all places in the code. And run my own local instance of Polkadot.js

@wottpal
Copy link

wottpal commented Oct 13, 2023

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

I replaced codeStorage to pristineCode in all places in the code. And run my own local instance of Polkadot.js

Thanks for sharing!! Would you mind opening a PR with that?

vampik33 added a commit to vampik33/apps that referenced this issue Oct 15, 2023
jacogr pushed a commit that referenced this issue Oct 16, 2023
…9951)

* #9901 - Fix issue with Contracts tab for polkadot-v1.0.0 based chain

* #9901 - Fix to support both pre and post polkadot-v1.0.0
@vampik33
Copy link
Contributor Author

@wottpal

Try with the latest changes from master branch. The PR was merged.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants