-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add deploy_as_blueprint
to VVMDeployer
#311
Conversation
bytecode=generate_blueprint_bytecode( | ||
compiler_data.bytecode, blueprint_preamble | ||
), |
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.
do we really need this much nesting?
boa/contracts/vvm/vvm_contract.py
Outdated
if env is None: | ||
env = Env.get_singleton() | ||
bytecode = generate_blueprint_bytecode(self.bytecode) | ||
address, _ = env.deploy_code(bytecode=bytecode) |
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.
need to register the blueprint
boa/contracts/vvm/vvm_contract.py
Outdated
""" | ||
if env is None: | ||
env = Env.get_singleton() | ||
bytecode = generate_blueprint_bytecode(self.bytecode) |
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.
best to cache this
deploy_as_blueprint
to VVMDeployer
# TODO: add filename | ||
return ABIContractFactory.from_abi_dict([]) | ||
|
||
def deploy_as_blueprint(self, env=None, blueprint_preamble=None, **kwargs): |
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.
blueprint_preamble=None, **kwargs
are unused now
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.
nice catch, thanks
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.
--------- Co-authored-by: Charles Cooper <cooper.charles.m@gmail.com>
What I did
How I did it
How to verify it
Description for the changelog
Cute Animal Picture