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

Can't instantiate specific contract twice #116

Open
agryaznov opened this issue Dec 1, 2021 · 7 comments
Open

Can't instantiate specific contract twice #116

agryaznov opened this issue Dec 1, 2021 · 7 comments

Comments

@agryaznov
Copy link

found in: current master (a9073cf)

A strange issue has been observed while trying to make another instance of the following contract.

Steps to reproduce:

  1. Go to /instantiate and Upload & Instantiate Contract using the candle_auction.contract
  2. Go through constructor steps, send transaction. The contract successfully deployed.
  3. Then, go to /instantiate once again, and click Instantiate on the same code bundle.
  4. The following error appears: Uncaught error. Something went wrong with the query and rendering of this component. registry is undefined

Meanwhile,

  1. repeating the same steps for erc721 contract works well leading to second contract instance creation view;
  2. deploying a second instance of the very same candle_auction contract code bundle through PolkadotJS works fine.
@statictype
Copy link

Can you try here please? https://paritytech.github.io/substrate-contracts-explorer/#/
Canvas UI will be replaced and we'll update the tutorials very soon.

@agryaznov
Copy link
Author

Can you try here please? https://paritytech.github.io/substrate-contracts-explorer/#/

on this one it stucks with

instantiateWithCode
processing...

while first instantiation of candle_auction.contract.

But works with erc721.contract

@statictype
Copy link

i am looking into this!
can you make a screenshot of the params you are passing in apps where you are able to instantiate properly?
just to exclude the possibility i am passing something wrong

@agryaznov
Copy link
Author

Sure, with the following params its instantiates properly in PolkadotJS/apps
Screenshot from 2021-12-02 18-57-08

@statictype
Copy link

thanks for this! i made these 2 issues in the new app. you are our first external user 🙂

use-ink/contracts-ui#162
use-ink/contracts-ui#161

until we implement these i suggest using polkadot.js apps (which I assume works fine)

@agryaznov
Copy link
Author

thanks for this! i made these 2 issues in the new app. you are our first external user slightly_smiling_face

Wow that's an honor! I'm happy to be here.

paritytech/substrate-contracts-explorer#162
paritytech/substrate-contracts-explorer#161

Btw, can I propose something in a new issue in that repo? I think I've got a feature request.

until we implement these i suggest using polkadot.js apps (which I assume works fine)

Yeah, that's what I do. Thankfully it has another issue fixed which was a show stopper for my use case. Now it works fine, true. Thanks!

@statictype
Copy link

Btw, can I propose something in a new issue in that repo? I think I've got a feature request.

sure, go ahead!

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

2 participants