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

fix: vector arguments #451

Closed statictype closed 1 year ago

statictype commented 1 year ago

fixes https://github.com/paritytech/contracts-ui/issues/431

For case 2 we display a new input which accepts a hex representation of Bytes. I figure this is a bit better UX than working with decimal digits.

can you please test @xermicus?

netlify[bot] commented 1 year ago

Deploy Preview for contracts-ui ready!

Name Link
Latest commit f871c7e5233f030a8ab868ee5142b751bf2b58ba
Latest deploy log https://app.netlify.com/sites/contracts-ui/deploys/641dbb6616b6710007460b61
Deploy Preview https://deploy-preview-451--contracts-ui.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

statictype commented 1 year ago

0xBBB resolves to 0xBBB0

ideally we would have validation for these dynamic argument inputs but at the moment it's not possible. it needs a large refactoring. i added a message below the input when the length is odd which clarifies the behaviour, but it doesn't prevent submitting the form.