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
61 stars 45 forks source link

Execute dry-run after contract call #445

Closed statictype closed 1 year ago

statictype commented 1 year ago

After calling a contract, the dry run results still display the old values. This may be inaccurate and cause the next contract call to fail.

Steps to reproduce the behavior:

  1. Instantiate an ERC1155
  2. On the interaction page select the create message
  3. Optionally input an amount in the value field
  4. Call the contract
  5. After a successfull contract call the dry run result still displays the old id (1)
  6. Edit the value input, the dry run is performed and the correct result is displayed

Expected behavior The dry run should be performed after the contract call with the existing input values. Alternative solution: after the contract call the form is reset to initial values and the dry run is performed with those.

Screenshots

Screenshot 2023-03-20 at 15 29 41 Screenshot 2023-03-20 at 15 29 57