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

UI crash when entered too large value #448

Closed kziemianek closed 1 year ago

kziemianek commented 1 year ago

When entering a value for message call the ui crash (blank page) and the following log can be found in a console:

Error: createType(u16):: u16: Input too large. Found input with 17 bits, expected 16

UI should handle these errors gracefully. Problems occurs on https://contracts-ui.substrate.io/.

statictype commented 1 year ago

@kziemianek can you please post the contract you uploaded and gave this error?

statictype commented 1 year ago

nevermind i can reproduce it with balance inputs