diff --git a/sdk/packages/sui/src/e2e.test.ts b/sdk/packages/sui/src/e2e.test.ts index cd3ef6cb..756f6e5e 100644 --- a/sdk/packages/sui/src/e2e.test.ts +++ b/sdk/packages/sui/src/e2e.test.ts @@ -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') } })