enigma-core icon indicating copy to clipboard operation
enigma-core copied to clipboard

Unreachable exception when passing wrong parameters to a secret contract

Open moriaab opened this issue 6 years ago • 1 comments

If wrong parameters are passed to secret contract deployment or computation, the "unreachable" exception occurs, which is unclear.

To reproduce the behavior, call to any contract computation with wrong input. For example, deploy simple calculator contract (examples/eng_wasm_contracts/simple_calculator) and execute computation of the function add with one parameter instead of two parameters.

Expected behavior Clear message about the exact problem with the input.

moriaab avatar Apr 28 '19 07:04 moriaab

This defect is planned to be fixed as part of general improvement of treating wrong inputs for deployment and computation of secret contracts.

moriaab avatar Apr 28 '19 07:04 moriaab