From 7b0dac8a9a868866a9762a7fbc9ada92271e6630 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Tue, 31 Dec 2024 11:33:16 +0100 Subject: [PATCH] Fix test --- tests/safe-integration/test_guard_safe_e2e.py | 1 - tests/safe-integration/test_guard_safe_uniswap_v2.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/safe-integration/test_guard_safe_e2e.py b/tests/safe-integration/test_guard_safe_e2e.py index fc323afd..7cd8791e 100644 --- a/tests/safe-integration/test_guard_safe_e2e.py +++ b/tests/safe-integration/test_guard_safe_e2e.py @@ -378,4 +378,3 @@ def test_swap_through_module_unauthorised( with pytest.raises(ValueError) as e: ts_module.functions.performCall(target, call_data).transact({"from": attacker_account}) assert "validateCall: Sender not allowed" in str(e) - diff --git a/tests/safe-integration/test_guard_safe_uniswap_v2.py b/tests/safe-integration/test_guard_safe_uniswap_v2.py index 0c488cd5..5bf06f3b 100644 --- a/tests/safe-integration/test_guard_safe_uniswap_v2.py +++ b/tests/safe-integration/test_guard_safe_uniswap_v2.py @@ -219,8 +219,7 @@ def test_safe_module_initialised( """Vault and guard are initialised for the owner.""" assert guard.functions.owner().call() == owner assert guard.functions.isAllowedSender(asset_manager).call() is True - assert guard.functions.isAllowedWithdrawDestination(owner).call() is True - assert guard.functions.isAllowedWithdrawDestination(asset_manager).call() is False + assert guard.functions.isAllowedSender(safe.address).call() is False # We have accessed needed for a swap assert guard.functions.callSiteCount().call() == 5