Skip to content

Commit

Permalink
adjust for trailing 0s in return
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-aztec committed Oct 9, 2023
1 parent ce2e927 commit 79e2d4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yarn-project/end-to-end/src/canary/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 79e2d4b

Please sign in to comment.