Skip to content

Commit

Permalink
Revert "feat: vvm deployer forward kwargs (vyperlang#332)"
Browse files Browse the repository at this point in the history
This reverts commit a52c79c.
  • Loading branch information
PatrickAlphaC committed Oct 15, 2024
1 parent 034c0ae commit 2d23441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions boa/contracts/vvm/vvm_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def constructor(self):
return ABIFunction(t, contract_name=self.filename)
return None

def deploy(self, *args, env=None, **kwargs):
def deploy(self, *args, env=None):
encoded_args = b""
if self.constructor is not None:
encoded_args = self.constructor.prepare_calldata(*args)
Expand All @@ -64,7 +64,7 @@ def deploy(self, *args, env=None, **kwargs):
if env is None:
env = Env.get_singleton()

address, _ = env.deploy_code(bytecode=self.bytecode + encoded_args, **kwargs)
address, _ = env.deploy_code(bytecode=self.bytecode + encoded_args)

return self.at(address)

Expand Down
13 changes: 0 additions & 13 deletions tests/unitary/contracts/vvm/test_vvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,3 @@ def test_loads_vvm():

assert contract.foo() == 42
assert contract.bar() == 43


def test_forward_args_on_deploy():
with open(mock_3_10_path) as f:
code = f.read()

contract_vvm_deployer = boa.loads_partial(code)

random_addy = boa.env.generate_address()

contract = contract_vvm_deployer.deploy(43, override_address=random_addy)

assert random_addy == contract.address

0 comments on commit 2d23441

Please sign in to comment.