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

Update to Cadence v0.9.2 #53

Merged
merged 4 commits into from
Oct 8, 2020
Merged

Conversation

turbolent
Copy link
Member

Fixes dapperlabs/flow-go#4894

Cadence v0.9.2 now panics with a dedicated error for out-of-bounds array accesses. Previously it relied on Go's bounds check, i.e. the error was a Go runtime error.

Non-Go runtime errors are bubbled to the host environment, as they indicate an implementation error, non-Go (Cadence) errors are returned as errors: https://github.com/onflow/cadence/blob/0a889feb15fb738b83924d372677cf8720cb8706/runtime/interpreter/interpreter.go#L855-L870

This means that nothing else needs to be done in flow-go, other than updating to the latest version.

@turbolent turbolent self-assigned this Oct 8, 2020
@turbolent turbolent merged commit cda222b into master Oct 8, 2020
@turbolent turbolent deleted the bastian/update-to-cadence-v0.9.2 branch October 8, 2020 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants