Skip to content

Commit

Permalink
Add "to" field to PENDING and EXECUTED multisig tx (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez authored Jan 8, 2025
1 parent a630cf2 commit b6f24a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def build_event_payload(
"address": instance.safe,
# 'type': None, It will be assigned later
"safeTxHash": HexBytes(instance.safe_tx_hash).hex(),
"to": instance.to,
}
if instance.executed:
payload["type"] = (
Expand Down
1 change: 1 addition & 0 deletions safe_transaction_service/history/tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def test_signals_are_correctly_fired(self, send_event_mock: MagicMock):
multisig_tx: MultisigTransaction = MultisigTransactionFactory(trusted=True)
pending_multisig_transaction_payload = {
"address": multisig_tx.safe,
"to": multisig_tx.to,
"safeTxHash": multisig_tx.safe_tx_hash,
"type": TransactionServiceEventType.EXECUTED_MULTISIG_TRANSACTION.name,
"failed": "false",
Expand Down

0 comments on commit b6f24a5

Please sign in to comment.