Skip to content
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 script return type is storable type #291

Merged
merged 6 commits into from
Aug 6, 2020

Conversation

benjaminkvm
Copy link
Contributor

@benjaminkvm benjaminkvm commented Aug 5, 2020

Closes #186.

Description

Fail to execute script if return type is non-storable type. We currently do not have a checker option to determine whether a program is a script or transaction, therefore I did this check within ExecuteScript. Let me know if you would prefer a checker option denoting program type + a checker check.

Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

runtime/errors.go Show resolved Hide resolved
runtime/errors.go Outdated Show resolved Hide resolved
runtime/runtime.go Outdated Show resolved Hide resolved
runtime/runtime_test.go Show resolved Hide resolved
@turbolent turbolent added Language Breaking Change Breaks Cadence contracts deployed on Mainnet Improvement labels Aug 6, 2020
runtime/errors.go Outdated Show resolved Hide resolved
runtime/errors.go Outdated Show resolved Hide resolved
runtime/errors.go Outdated Show resolved Hide resolved
@benjaminkvm benjaminkvm merged commit ff20d91 into master Aug 6, 2020
@turbolent turbolent deleted the benjaminkvm/186-reject-non-storable-return-type branch August 25, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Language Breaking Change Breaks Cadence contracts deployed on Mainnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reject scripts with non-storable return type
2 participants