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

fix dead **kwargs and use of blueprint_preamble kwarg #325

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions boa/contracts/vvm/vvm_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ def deploy(self, *args, env=None):

return self.at(address)

@cached_property
def _blueprint_bytecode(self):
return generate_blueprint_bytecode(self.bytecode)

@cached_property
def _blueprint_deployer(self):
# TODO: add filename
Expand All @@ -88,9 +84,13 @@ def deploy_as_blueprint(self, env=None, blueprint_preamble=None, **kwargs):
if env is None:
env = Env.get_singleton()

address, _ = env.deploy_code(bytecode=self._blueprint_bytecode)
blueprint_bytecode = generate_blueprint_bytecode(
self.bytecode, blueprint_preamble
)
address, _ = env.deploy_code(bytecode=blueprint_bytecode, **kwargs)

ret = self._blueprint_deployer.at(address)

env.register_blueprint(self.bytecode, ret)
return ret

Expand Down
Loading