spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

Invalid `ctor`: `FuncNotAllowed` is now `FuncNotFound` #423

Closed neysofu closed 2 years ago

neysofu commented 2 years ago

When spawning with an invalid ctor, we previously returned a FuncNotAllowed error. The reasoning was, it's possible that the selected function exists but isn't actually allowed to run as a ctor. I think FuncNotFound makes more sense though.

neysofu commented 2 years ago

I'll close this, @YaronWittenstein intends on doing a more comprehensive refactoring also fixing this issue.