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

Duplicate react keys for contract events #447

Closed statictype closed 1 year ago

statictype commented 1 year ago

To Reproduce Steps to reproduce the behavior:

  1. Connect to Astar Shibuya
  2. Deploy sbp.contract.zip
  3. Select the addProject message, give it a name and call the contract
  4. After a successful call, see react key error in the console
  5. Edit the projectName
  6. New events are added to the transaction log

Expected behavior

  1. React elements should have unique keys. An event can happen multiple times and this key doesn't work.
  2. Events shouldn't be added when editing the form