canvas-ui icon indicating copy to clipboard operation
canvas-ui copied to clipboard

Can't instantiate specific contract twice

Open agryaznov opened this issue 4 years ago • 7 comments

found in: current master (a9073cf1)

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.

agryaznov avatar Dec 01 '21 16:12 agryaznov

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.

statictype avatar Dec 01 '21 18:12 statictype

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

agryaznov avatar Dec 01 '21 19:12 agryaznov

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

statictype avatar Dec 02 '21 15:12 statictype

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

agryaznov avatar Dec 02 '21 15:12 agryaznov

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

https://github.com/paritytech/substrate-contracts-explorer/issues/162 https://github.com/paritytech/substrate-contracts-explorer/issues/161

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

statictype avatar Dec 06 '21 15:12 statictype

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!

agryaznov avatar Dec 06 '21 16:12 agryaznov

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

sure, go ahead!

statictype avatar Dec 06 '21 16:12 statictype