Skip to content

Commit

Permalink
fix: allow single message
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Aug 14, 2024
1 parent c46c86f commit 5f1bfd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,16 @@ def _deploy_service_onchain_from_safe( # pylint: disable=too-many-statements,to

self.logger.info(f"{reuse_multisig=}")

approve_message, deploy_message = sftxb.get_deploy_data_from_safe(
messages = sftxb.get_deploy_data_from_safe(
service_id=chain_data.token,
reuse_multisig=reuse_multisig,
master_safe=sftxb.wallet.safe,
)
sftxb.new_tx().add(approve_message).add(deploy_message).settle()
tx = sftxb.new_tx()
for message in messages:
tx.add(message)
tx.settle()

chain_data.on_chain_state = OnChainState.DEPLOYED
service.store()

Expand Down

0 comments on commit 5f1bfd9

Please sign in to comment.