Skip to content

Commit

Permalink
fix dead **kwargs and use of blueprint_preamble kwarg (#325)
Browse files Browse the repository at this point in the history
* fix dead **kwargs and use of blueprint_preamble kwarg
* add kwargs back in
  • Loading branch information
charles-cooper authored Oct 5, 2024
1 parent 7f1c700 commit 73447e1
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 73447e1

Please sign in to comment.