From e70ef0104f8731d06401a295d447b08e99f9e060 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 13 Dec 2023 09:45:40 -0800 Subject: [PATCH] fix: fix WASM test --- packages/snap/src/handlers.test.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/snap/src/handlers.test.ts b/packages/snap/src/handlers.test.ts index 0b87cc5..ec6ac58 100644 --- a/packages/snap/src/handlers.test.ts +++ b/packages/snap/src/handlers.test.ts @@ -226,11 +226,6 @@ describe('onRPCRequest', () => { base64Decode(resultPayload), ); - console.log( - 'decodedEncryptResponse', - JSON.stringify(decodedEncryptResponse), - ); - const decryptRequest = keystore.SelfDecryptRequest.encode({ requests: [ { @@ -244,10 +239,10 @@ describe('onRPCRequest', () => { }); const decryptResultPayload = ((await decryptResponse) as any).response - .result.res; - - const decryptResultProto = - keystore.DecryptResponse.decode(decryptResultPayload); + ?.result.res; + const decryptResultProto = keystore.DecryptResponse.decode( + base64Decode(decryptResultPayload), + ); expect(decryptResultProto.responses[0].result?.decrypted).toEqual( originalData, );