v3.7.5#3330
Merged
NGDAdmin merged 6 commits intoneo-project:v3.7.5from Jun 12, 2024
superboyiii:v3.7.5
Merged
Conversation
* fix 3300 * update format * add state subitems to ref counter, with suggestion from DuSmart * apply hardfork * format * my mistake * fix hardfork * remove negative check * add unit test * apply anna's suggestion --------- Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: NGD Admin <154295625+NGDAdmin@users.noreply.github.com>
It's not correct to use an updated contract state got from native Management to check for the allowed method call. We need to use manifest from the currently executing context for that. It may be critical for cases when executing contract is being updated firstly, and after that it calls another contract. So we need an old (executing) contract manifest for this check. This change is moved under D hardfork to avoid state diff issues on nodes update. Although it should be noted that it's hard to meet the trigger criteria. A port of nspcc-dev/neo-go#3473. This bug was discovered during the similar problem described in nspcc-dev/neo-go#3471 and fixed in nspcc-dev/neo-go#3472. I've checked all other similar usages and the rest of them use proper contract state (executing one, not the Management's one). Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru> Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: Jimmy <jinghui@wayne.edu> Co-authored-by: Vitor Nazário Coelho <vncoelho@gmail.com>
AnnaShaleva
approved these changes
Jun 11, 2024
Jim8y
approved these changes
Jun 11, 2024
Member
|
Merge #3320 before, for tests locally to work |
Member
|
https://github.com/neo-project/neo/pull/3306/files I mean this one |
AnnaShaleva
added a commit
to nspcc-dev/neo-go
that referenced
this pull request
Jun 11, 2024
Ref. neo-project/neo#3330. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva
added a commit
to nspcc-dev/neo-go
that referenced
this pull request
Jun 11, 2024
Ref. neo-project/neo#3330. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva
reviewed
Jun 11, 2024
cschuchardt88
suggested changes
Jun 11, 2024
Otherwise this configuration file is broken. Port changes from nspcc-dev/neo-go#3446. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Member
Author
|
@AnnaShaleva @cschuchardt88 Could you review again? |
Member
Author
Not criticial for this hotfix. We can put it into v3.8.0 |
cschuchardt88
approved these changes
Jun 12, 2024
AnnaShaleva
approved these changes
Jun 12, 2024
AnnaShaleva
approved these changes
Jun 12, 2024
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.
v3.7.5 hotfix