Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dysbulic authored Dec 10, 2024
2 parents ebcb66c + c1dbbc2 commit 405f1bb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ dependencies = [
"prompt_toolkit>=3",
"pygments>=2",
"requests>=2",
"safe-eth-py>=6.0.0b41",
"safe-eth-py>=6.0.0b43",
"tabulate>=0.8",
"typer==0.12.5",
"typer>=0.14.0",
]

[project.optional-dependencies]
ledger = ["ledgereth==0.9.1"]
ledger = ["ledgereth==0.10.0"]
trezor = ["trezor==0.13.9"]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements.txt
coverage==7.6.4
coverage==7.6.8
flake8==7.1.1
pytest==8.3.3
pytest-sugar==1.0.0
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
art==6.3
art==6.4
colorama==0.4.6
hexbytes==0.3.1
ledgereth==0.9.1
ledgereth==0.10.0
packaging>=23.1
prompt_toolkit==3.0.48
pygments==2.18.0
requests==2.32.3
safe-eth-py==6.0.0b41
safe-eth-py==6.0.0b43
tabulate==0.9.0
trezor==0.13.9
typer==0.12.5
typer==0.14.0
web3==6.20.2
5 changes: 3 additions & 2 deletions src/safe_cli/operators/safe_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,10 @@ def update_version_to_l2(
fallback_handler = safe_deployments["1.3.0"][
"CompatibilityFallbackHandler"
][str(chain_id)]
# Assuming first element of the array is the `canonical` address
data = HexBytes(
l2_migration_contract.functions.migrateFromV111(
safe_l2_singleton, fallback_handler
safe_l2_singleton[0], fallback_handler[0]
).build_transaction(get_empty_tx_params())["data"]
)
elif safe_version in ("1.3.0", "1.4.1"):
Expand All @@ -738,7 +739,7 @@ def update_version_to_l2(
fallback_handler = self.safe_cli_info.fallback_handler
data = HexBytes(
l2_migration_contract.functions.migrateToL2(
safe_l2_singleton
safe_l2_singleton[0]
).build_transaction(get_empty_tx_params())["data"]
)
else:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_safe_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ def test_update_to_l2_v111(self):
"safe_cli.operators.safe_operator.safe_deployments",
{
"1.3.0": {
"GnosisSafeL2": {"1337": self.safe_contract_V1_3_0.address},
"GnosisSafeL2": {"1337": [self.safe_contract_V1_3_0.address]},
"CompatibilityFallbackHandler": {
"1337": self.compatibility_fallback_handler.address
"1337": [self.compatibility_fallback_handler.address]
},
}
},
Expand Down Expand Up @@ -404,7 +404,7 @@ def test_update_to_l2_v130(self):
"safe_cli.operators.safe_operator.safe_deployments",
{
"1.3.0": {
"GnosisSafeL2": {"1337": safe_contract_l2_130_address},
"GnosisSafeL2": {"1337": [safe_contract_l2_130_address]},
}
},
):
Expand Down

0 comments on commit 405f1bb

Please sign in to comment.