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

core: get native nep17 balance from contract storage #1876

Merged
merged 1 commit into from
Apr 1, 2021
Merged

Conversation

AnnaShaleva
Copy link
Member

Not from DAO's items with storage.STNEP17Balances prefix, because
changes are reflected there only after notifications processing. And
this happens only after the transaction script is executed, but there
might be cases when we need to get the balance that was updated
earlier during the same transaction processing.

Affects storage dumps.

This PR makes us compatible with the C# nodes up to 44k of the RC1 testnet.

Not from DAO's items with storage.STNEP17Balances prefix, because
changes are reflected there only after notifications processing. And
this happens only after the transaction script is executed, but there
might be cases when we need to get the balance that was updated
earlier during the same transaction processing.

Affects storage dumps.
@AnnaShaleva AnnaShaleva added the bug Something isn't working label Apr 1, 2021
@AnnaShaleva AnnaShaleva requested a review from roman-khimov April 1, 2021 15:49
@roman-khimov roman-khimov added this to the v0.94.1 milestone Apr 1, 2021
@roman-khimov roman-khimov merged commit 87db4c9 into master Apr 1, 2021
@roman-khimov roman-khimov deleted the nep17-fix branch April 1, 2021 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants