Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 0083d71

Browse files
Artemkaaasdbluhm
authored andcommitted
Fixed preparation of Forward message
Signed-off-by: artem.ivanov <artem.ivanov@dsr-company.com>
1 parent 476e46a commit 0083d71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

aries_staticagent/static_connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,15 @@ def pack(self, msg: Union[dict, Message], anoncrypt=False) -> bytes:
239239
)
240240

241241
if self.routing_keys:
242+
to = self.recipients[0]
243+
242244
for routing_key in self.routing_keys:
243245
packed_message = crypto.pack_message(
244-
forward_msg(to=routing_key, msg=packed_message),
246+
json.dumps(forward_msg(to=to, msg=packed_message)),
245247
[routing_key],
246248
dump=False
247249
)
250+
to = routing_key
248251

249252
return json.dumps(packed_message).encode('ascii')
250253

0 commit comments

Comments
 (0)