From 79e2d4bfd3c3b8dcd156070405a39a96d2ae55f6 Mon Sep 17 00:00:00 2001 From: Dan Lee Date: Mon, 9 Oct 2023 17:49:26 +0100 Subject: [PATCH] adjust for trailing 0s in return --- yarn-project/end-to-end/src/canary/browser.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yarn-project/end-to-end/src/canary/browser.ts b/yarn-project/end-to-end/src/canary/browser.ts index 60dbb481a37..2bd8766c873 100644 --- a/yarn-project/end-to-end/src/canary/browser.ts +++ b/yarn-project/end-to-end/src/canary/browser.ts @@ -119,9 +119,10 @@ export const browserTestSuite = (setup: () => Server, pageLogger: AztecJs.DebugL ); // NOTE: browser doesnt know how to serialize CompleteAddress for return, so return a string // otherwise returning a CompleteAddress makes result undefined. - return completeAddress.partialAddress.toString(); + return completeAddress.toString(); }); - expect(result).toBe('0x115f123bbc6cc6af9890055821cfba23a7c4e8832377a32ccb719a1ba3a86483'); + // a lot of trailing 0s get added in the return value + expect(result.slice(0, 66)).toBe('0x115f123bbc6cc6af9890055821cfba23a7c4e8832377a32ccb719a1ba3a86483'); }); it("Gets the owner's balance", async () => {