From 99230bcc1717410eb63baa108bc98637f9b715db Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Fri, 9 Jun 2023 18:32:47 +0000 Subject: [PATCH] fix: pad entry string in l1 to l2 tests --- yarn-project/end-to-end/src/e2e_cross_chain_messaging.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_cross_chain_messaging.test.ts b/yarn-project/end-to-end/src/e2e_cross_chain_messaging.test.ts index 99fef5534c2b..4acb47d42a7c 100644 --- a/yarn-project/end-to-end/src/e2e_cross_chain_messaging.test.ts +++ b/yarn-project/end-to-end/src/e2e_cross_chain_messaging.test.ts @@ -164,7 +164,7 @@ describe('e2e_cross_chain_messaging', () => { content.toBuffer(), ]), ); - expect(await outbox.read.contains([entryKey.toString()])).toBeFalsy(); + expect(await outbox.read.contains([entryKey.toString(true)])).toBeFalsy(); logger('Send L2 tx to withdraw funds'); const withdrawTx = l2Contract.methods.withdraw(withdrawAmount, ownerPub, ethAccount).send({ from: ownerAddress }); @@ -183,7 +183,7 @@ describe('e2e_cross_chain_messaging', () => { ethAccount.toString(), ]); - expect(withdrawEntryKey).toBe(entryKey.toString()); + expect(withdrawEntryKey).toBe(entryKey.toString(true)); expect(await outbox.read.contains([withdrawEntryKey])).toBeTruthy();