diff --git a/yarn-project/circuits.js/src/structs/complete_address.test.ts b/yarn-project/circuits.js/src/structs/complete_address.test.ts index ec45caaa8d9..5a2381605eb 100644 --- a/yarn-project/circuits.js/src/structs/complete_address.test.ts +++ b/yarn-project/circuits.js/src/structs/complete_address.test.ts @@ -65,4 +65,9 @@ describe('CompleteAddress', () => { expect(completeAddressFromComponents.equals(completeAddressFromString)).toBe(true); }); + + it('has correct size in bytes', () => { + const completeAddress = CompleteAddress.random(); + expect(completeAddress.toBuffer().length).toBe(CompleteAddress.SIZE_IN_BYTES); + }); }); diff --git a/yarn-project/circuits.js/src/structs/complete_address.ts b/yarn-project/circuits.js/src/structs/complete_address.ts index 5fbd1132e40..a58014ea60c 100644 --- a/yarn-project/circuits.js/src/structs/complete_address.ts +++ b/yarn-project/circuits.js/src/structs/complete_address.ts @@ -30,7 +30,7 @@ export class CompleteAddress { } /** Size in bytes of an instance */ - static readonly SIZE_IN_BYTES = 32 * 4; + static readonly SIZE_IN_BYTES = 32 * 10; static get schema() { return hexSchemaFor(CompleteAddress);