-
Notifications
You must be signed in to change notification settings - Fork 138
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
Handle missing interfaces in Cadence 1.0 contract update validator #3337
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 850c2db Collapsed results for better readability
|
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.
LGTM!
Validator doesn't load old sema types (only new sema-types are loaded), so it makes sense why it doesn't error out on type loading.
Closes #3336
Description
Fix a nil-dereference crasher, which occurred when the upgradability of a field is checked, in particular when the old type had a restricted type with a non-existing interface.
The patch fixes the crasher, but I'm not 100% sure if this is sufficient in terms of validity – should the validator also report an error that the interface cannot be found?
master
branchFiles changed
in the Github PR explorer