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

Create an AccountDB class on-the-fly #151

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

DanielSchiavini
Copy link
Collaborator

What I did

Simplified the way we create the AccountDBFork by using a class factory.

How I did it

Creating a new class on-the-fly

How to verify it

Everything should work the same

Description for the changelog

N/A

Cute Animal Picture

image


self._init_vm(reset_traces=reset_traces, account_db_class=AccountDBFork)
class CustomAccountDB(AccountDBFork):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class CustomAccountDB(AccountDBFork):
class _CustomAccountDB(AccountDBFork):

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_ConfiguredAccountDB?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe all of this should really be a factory method on AccountDBFork

boa/vm/fork.py Outdated Show resolved Hide resolved
@charles-cooper charles-cooper merged commit aa9a049 into vyperlang:master Feb 14, 2024
5 of 8 checks passed
@DanielSchiavini DanielSchiavini deleted the account-db-factory branch February 19, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants