Skip to content

Commit

Permalink
remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Nov 12, 2024
1 parent f33f644 commit 7d316cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_should_deploy_account_when_sender_starknet_address_zero(
@SyscallHandler.patch(
"Kakarot_evm_to_starknet_address", CALLER_ADDRESS, 0x1234
)
@SyscallHandler.patch_deploy(lambda class_hash, data: [0])
@SyscallHandler.patch_deploy(lambda *_: [0])
@pytest.mark.parametrize(
"address, caller_address, input_data, expected_return_data, expected_reverted",
[
Expand Down
12 changes: 6 additions & 6 deletions tests/end_to_end/Security/test_dual_vm_token_hack.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def test_malicious_approve_starknet_should_fail_nodelegatecall(
assert allowance == 0

async def test_malicious_transfer_address_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions["tryTransferEvm()"]()
call_succeeded = int.from_bytes(bytes(result["response"]), "big")
Expand All @@ -92,7 +92,7 @@ async def test_malicious_transfer_address_should_fail_nodelegatecall(
assert balance == 0

async def test_malicious_transfer_starknet_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions["tryTransferStarknet()"]()
call_succeeded = int.from_bytes(bytes(result["response"]), "big")
Expand All @@ -104,7 +104,7 @@ async def test_malicious_transfer_starknet_should_fail_nodelegatecall(
assert balance == 0

async def test_malicious_transfer_from_address_address_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions["tryTransferFromEvmEvm()"]()
call_succeeded = int.from_bytes(bytes(result["response"]), "big")
Expand All @@ -116,7 +116,7 @@ async def test_malicious_transfer_from_address_address_should_fail_nodelegatecal
assert balance == 0

async def test_malicious_transfer_from_starknet_address_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions["tryTransferFromStarknetEvm()"]()
call_succeeded = int.from_bytes(bytes(result["response"]), "big")
Expand All @@ -128,7 +128,7 @@ async def test_malicious_transfer_from_starknet_address_should_fail_nodelegateca
assert balance == 0

async def test_malicious_transfer_from_address_starknet_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions["tryTransferFromEvmStarknet()"]()
call_succeeded = int.from_bytes(bytes(result["response"]), "big")
Expand All @@ -140,7 +140,7 @@ async def test_malicious_transfer_from_address_starknet_should_fail_nodelegateca
assert balance == 0

async def test_malicious_transfer_from_starknet_starknet_should_fail_nodelegatecall(
self, dual_vm_token, hack_vm_token, owner
self, dual_vm_token, hack_vm_token
):
result = await hack_vm_token.functions[
"tryTransferFromStarknetStarknet()"
Expand Down

0 comments on commit 7d316cd

Please sign in to comment.