Skip to content

Commit

Permalink
fix test sui
Browse files Browse the repository at this point in the history
  • Loading branch information
LukassF committed Sep 27, 2024
1 parent 24e6adf commit 95a14a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/packages/sui/src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,14 @@ describe('SUI client tests', () => {
})
try {
// We need to deserialize the signature
const parsedSignature = parseSerializedSignature(signedMessage.messageBytes)
const parsedSignature = parseSerializedSignature(signedMessage.signature)
// Will throw if invalid
await verifyPersonalMessageSignature(
new TextEncoder().encode(msgToSign),
toB64(parsedSignature.signature!)
)
} catch (error) {
console.log(error)
assert(false, 'Message is invalid')
}
})
Expand Down

0 comments on commit 95a14a8

Please sign in to comment.