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

[master] Updates to external state fetch in ContractStorage2 #2461

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

vaivaswatha
Copy link
Contributor

Description

  1. query.mapdepth may be set to -1 by Scilla (in case of external states, Scilla cannot know this value). The blockchain needs to fetch the value from its database and use it for the lookup.
  2. query.ignoreval may be set for nonmap fields too. In such a case, the blockchain only needs to return the type of the field and not the value.
  3. Field not found should no more be an error. foundVal needs to be set to false and that's it. This will enable Scilla to check for presence of a field in a contract without it becoming an error.

Backward Compatibility

  • This is not a breaking change
  • This is a breaking change

Review Suggestion

Status

Implementation

  • ready for review

Integration Test (Core Team)

  • local machine test
  • small-scale cloud test

@github-actions github-actions bot changed the title Updates to external state fetch in ContractStorage2 [master] Updates to external state fetch in ContractStorage2 Feb 26, 2021
@github-actions github-actions bot added this to PRs in development in Core Feb 26, 2021
@ansnunez ansnunez assigned ansnunez and vaivaswatha and unassigned ansnunez Feb 26, 2021
@vaivaswatha vaivaswatha marked this pull request as ready for review February 26, 2021 08:21
src/libPersistence/ContractStorage2.cpp Show resolved Hide resolved
src/libPersistence/ContractStorage2.cpp Outdated Show resolved Hide resolved
src/libPersistence/ContractStorage2.cpp Outdated Show resolved Hide resolved
Core automation moved this from PRs in development to PRs needing review Feb 26, 2021
@ansnunez ansnunez self-requested a review March 3, 2021 10:28
src/libData/AccountData/AccountStoreSC.tpp Outdated Show resolved Hide resolved
src/libData/AccountData/AccountStoreSC.tpp Outdated Show resolved Hide resolved
Core automation moved this from PRs needing review to PRs approved - ready to merge! Mar 4, 2021
@ansnunez ansnunez merged commit 37300fc into master Mar 4, 2021
Core automation moved this from PRs approved - ready to merge! to PRs done (merged) Mar 4, 2021
@ansnunez ansnunez deleted the fix/remote_state_reads branch March 4, 2021 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Core
  
PRs done (merged)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants