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

Incorrect decoding of return values for traits #387

Closed statictype closed 1 year ago

statictype commented 1 year ago

For messages defined in traits the dry run outcome is wrong.

To Reproduce Steps to reproduce the behavior:

  1. Upload trait-erc20 contract
  2. the total_supply returned is incorrect
  3. Select transfer message
  4. Generate an InsufficientBalance error by typing a large amount
  5. The error is not decoded
  6. Repeat steps with erc20 contract and it works ok

Expected behavior The balance is correctly decoded and the error name is displayed

trait-erc20

Screenshot 2023-01-04 at 19 25 10 Screenshot 2023-01-04 at 19 23 36

erc-20

Screenshot 2023-01-04 at 19 23 47 Screenshot 2023-01-04 at 19 25 49
statictype commented 1 year ago

fixed in ink-4.0.1