stacks-network / clarity-wasm

`clar2wasm` is a compiler for generating WebAssembly from Clarity.
GNU General Public License v3.0
12 stars 12 forks source link

add value to ShortReturnType runtime error #385

Open csgui opened 5 months ago

csgui commented 5 months ago

Runtime error ShortReturnType should return the thrown value.

Also related to this issue, the ShortReturnType should be handled accordingly to https://github.com/stacks-network/stacks-core/blob/master/clarity/src/vm/errors.rs#L109. Currently, only AssertionFailed variant is being considered. We also need to handle ExpectedValue variant. Check the return_early implementation for more context.