-
-
Notifications
You must be signed in to change notification settings - Fork 116
Unreachable Code when invoking VM #1143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It might be related to a cost models thing; I reverted a change that removed a custom override of protocol params that I thought was no longer necessary and I'm now no longer crashing. The cost models in the custom hard coded protocol parameters, which likely just came from preview or something:
|
Pallas isn’t robust against some unexpected things in its decoders. So the way the aiken UPLC vm uses pallas to decode inputs will result in unreachable errors for data that has unexpected shapes. I’ve reached that error a lot when sending things I’m encoding directly with elm-cardano when I was playing with fake address or fake hashes that had the wrong length. Same thing for protocol params, if they have the wrong length it can result in unreachables. |
As a user, I’d love if all |
What Git revision are you using?
What operating system are you using, and which version?
Describe what the problem is?
When invoking
eval_phase_two_raw
via the JPG Store wasm bindgen frontend, with the following values:I get an "Unreachable code" error:
What should be the expected behavior?
A more useful error explaining what's wrong with my transaction. (it's totally possible that I'm doing something dumb, but I don't really have much useful info about what's going wrong)
The text was updated successfully, but these errors were encountered: