Skip to content

Commit

Permalink
Fix L2 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Nov 29, 2024
1 parent 0659e6c commit dc9c2a8
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit dc9c2a8

Please sign in to comment.