Skip to content

Commit

Permalink
fix: removed check for senderkey for connectionless exchange (#555)
Browse files Browse the repository at this point in the history
Signed-off-by: janrtvld <[email protected]>
  • Loading branch information
janrtvld authored Dec 1, 2021
1 parent dee03e3 commit ba3f17e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ export class ConnectionService {
}

// If message is received unpacked/, we need to make sure it included a ~service decorator
if (!message.service && (!messageContext.senderVerkey || !messageContext.recipientVerkey)) {
throw new AriesFrameworkError('Message without senderKey and recipientKey must have ~service decorator')
if (!message.service && !messageContext.recipientVerkey) {
throw new AriesFrameworkError('Message recipientKey must have ~service decorator')
}
}
}
Expand Down

0 comments on commit ba3f17e

Please sign in to comment.