-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix(levm): fix interaction with cache and db #1531
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
aae5d87
move get_account logic out of VM implementation
JereSalo fdf1bec
remove unnecessary caching in VM::new
JereSalo 1f8b27f
replace one instance of get_account from db
JereSalo 3649048
move creation of contract to transact, interact with cache first, the…
JereSalo 6f3fa33
remove receiver account on revert (independently of transaction type)
JereSalo 5bddf60
Delete .tool-versions~
JereSalo fd06635
remove file
JereSalo cfeaad4
Merge branch 'levm/fixes_cache_db' of github.com:lambdaclass/lambda_e…
JereSalo da8a681
remove cache_from_db method
JereSalo 58d42b0
change get_account for access_account
JereSalo 32435f2
replace direct access to db for cache and then db
JereSalo a49e264
Revert "change get_account for access_account"
JereSalo 4979241
Merge branch 'main' into levm/fixes_cache_db
JereSalo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
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.
Maybe we could have a different name for the two functions, since having the same one could lead to confusion.
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.
hmm maybe, the arguments are different though. They have the same name because they do the same thing but the
VM
one is like a wrapper. A better name doesn't come to my mind, what do you suggest?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.
It's true that there isn't a good name for both, maybe it could be get_account_cache_or_db, but it says more about implementation than anything else. Actual version looks good to me in that sense 👍