Skip to content

Commit c8104b6

Browse files
committed
refactor(Account): drop v1.1.1
1 parent cd385d9 commit c8104b6

4 files changed

Lines changed: 2 additions & 46 deletions

File tree

ape_safe/manifests/safe-v1.1.1.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/build.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@
99

1010
# NOTE: Exclude all non-essential contract types
1111
VERSIONS = {
12-
"v1.1.1": """
13-
compile:
14-
exclude:
15-
- base
16-
- common
17-
- external
18-
- handler
19-
- interfaces
20-
- libraries/CreateAndAddModules.sol
21-
- libraries/CreateCall.sol
22-
- mocks
23-
- modules
24-
- proxies/DelegateConstructorProxy.sol
25-
- proxies/IProxyCreationCallback.sol
26-
- proxies/PayingProxy.sol
27-
- Migrations.sol
28-
29-
dependencies:
30-
- name: openzeppelin
31-
github: OpenZeppelin/openzeppelin-contracts
32-
version: 2.2.0
33-
34-
solidity:
35-
version: 0.5.14
36-
import_remapping:
37-
- "@openzeppelin/contracts=openzeppelin/v2.2.0"
38-
""",
3912
"v1.3.0": """
4013
compile:
4114
exclude:

tests/functional/test_guard.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import pytest
2-
from packaging.version import Version
3-
4-
51
def test_add_guard(safe, guard, exec_transaction):
6-
if safe.version < Version("1.3.0"):
7-
pytest.skip(reason="Guard does not exist prior to v1.3.0")
8-
92
assert safe.guard is None
103

114
receipt = exec_transaction(

tests/functional/test_modules.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22
from ape.exceptions import ContractLogicError
3-
from packaging.version import Version
43

54

65
@pytest.mark.parametrize("num_modules", [1, 2, 3])
@@ -38,16 +37,8 @@ def test_remove_module(safe, create_module, num_modules):
3837
def test_module_works(safe, create_module, deployer):
3938
module = create_module()
4039

41-
with pytest.raises(
42-
# NOTE: `handle_safe_logic_error` won't work on a generic contract call
43-
ContractLogicError,
44-
match=(
45-
"GS104"
46-
# NOTE: Safe error codes only available in Safe v1.3.0+
47-
if safe.version >= Version("1.3.0")
48-
else "Method can only be called from an enabled module"
49-
),
50-
):
40+
# NOTE: `handle_safe_logic_error` won't work on a generic contract call
41+
with pytest.raises(ContractLogicError, match="GS104"):
5142
module.test(safe, sender=deployer)
5243

5344
safe.modules.enable(module, submitter=deployer)

0 commit comments

Comments
 (0)