-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Ensure nef file fit in vm #2939
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Liaojinghui maybe we can just remove the constant and do this check in neo-devpack, otherwise, if it's not serialized/deserialized it won't happened. What do you think?
I dont think it matters, but you can do it and i will support you. |
@shargon, could you, please, clarify the constant name you're talking about? If it's the |
MaxScriptSize |
Port neo-project/neo#2939. Signed-off-by: Anna Shaleva <[email protected]>
@shargon, I think it's a good idea to check the generated NEF file in the compiler against the size restrictions. I've implemented it in NeoGo, please, check the last two commits of https://github.com/nspcc-dev/neo-go/pull/3186/commits. If you're proposing something like this, then I support. |
Yes, is like this |
Port neo-project/neo#2939. Signed-off-by: Anna Shaleva <[email protected]>
Following the line of neo-project/neo-vm#514