Fix CallFlags for native contracts and syscalls#2339
Merged
Conversation
Closed
Member
Author
| public static readonly InteropDescriptor System_Storage_Delete = Register("System.Storage.Delete", nameof(Delete), 0, CallFlags.WriteStates); | ||
| public static readonly InteropDescriptor System_Storage_Put = Register("System.Storage.Put", nameof(Put), 0, CallFlags.States); | ||
| public static readonly InteropDescriptor System_Storage_PutEx = Register("System.Storage.PutEx", nameof(PutEx), 0, CallFlags.States); | ||
| public static readonly InteropDescriptor System_Storage_Delete = Register("System.Storage.Delete", nameof(Delete), 0, CallFlags.States); |
Contributor
There was a problem hiding this comment.
I'd probably leave these as is.
Member
Author
There was a problem hiding this comment.
We need to read the IsConstant field before writing. Do we need IsConstant? Maybe we can remove it.
Contributor
There was a problem hiding this comment.
It can be a significant storage item simplification, but we'll loose a safety feature at the same time that I can't see any substitute for (other than a separate "constant storage context", but that's not really better than the flag we have at the moment). But I'm not sure it's really used by contracts.
Member
Author
There was a problem hiding this comment.
I think it's never used.
shargon
previously approved these changes
Feb 15, 2021
erikzhang
commented
Feb 16, 2021
shargon
previously approved these changes
Feb 16, 2021
shargon
approved these changes
Feb 17, 2021
roman-khimov
added a commit
to nspcc-dev/neo-go
that referenced
this pull request
Mar 16, 2021
roman-khimov
added a commit
to nspcc-dev/neo-go
that referenced
this pull request
Mar 16, 2021
ixje
added a commit
to CityOfZion/neo-mamba
that referenced
this pull request
Apr 20, 2021
ixje
added a commit
to CityOfZion/neo-mamba
that referenced
this pull request
Apr 30, 2021
* neo-project/neo#2295 * neo-project/neo#2290 * neo-project/neo#2292 * neo-project/neo#2296 * neo-project/neo#2301 * neo-project/neo#2298 * neo-project/neo#2312 * neo-project/neo#2300 * neo-project/neo#2333 * neo-project/neo#2337 * neo-project/neo#2331 * neo-project/neo#2332 * neo-project/neo#2343 * neo-project/neo#2339 * neo-project/neo#2350 * neo-project/neo#2351 * neo-project/neo#2353 * neo-project/neo#2356 * neo-project/neo#2375 * neo-project/neo#2377 * neo-project/neo#2379 * https://github.com/neo-project/neo/pull/2392/files * neo-project/neo#2400 * audit updates * refactor and bump VM requirement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #2316