use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
62 stars 47 forks source link

It's not possible to instantiate a contract from code hash. #378

Closed mike1729 closed 1 year ago

mike1729 commented 1 year ago

Describe the bug It's not possible to instantiate a contract using a code hash of a contract that was already deployed and it's metadata is not in the db of contracts-ui.

To Reproduce Steps to reproduce the behavior:

  1. Start a session of contracts-ui
  2. Deploy some contract using other tool or session with different db and copy it's hash
  3. Use "Instatiate Contract from Code Hash" in the main session
  4. Paste the hash to the box. There is no action to be made nor any error displayed.

Expected behavior There should be some option to add contract's metadata as hinted here.

Screenshots Providing some random hash results in an error: image

Providing correct hash results in no info: image

Desktop (please complete the following information):

mike1729 commented 1 year ago

Thanks :pray: