From e636fccc2a4b560782adf4181174995cf11d3085 Mon Sep 17 00:00:00 2001 From: benesjan Date: Tue, 6 Feb 2024 16:02:28 +0000 Subject: [PATCH] cleanup --- .../src/crates/types/src/tests/fixtures.nr | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/yarn-project/noir-protocol-circuits/src/crates/types/src/tests/fixtures.nr b/yarn-project/noir-protocol-circuits/src/crates/types/src/tests/fixtures.nr index 05a90de5618b..32b29b89d48b 100644 --- a/yarn-project/noir-protocol-circuits/src/crates/types/src/tests/fixtures.nr +++ b/yarn-project/noir-protocol-circuits/src/crates/types/src/tests/fixtures.nr @@ -30,6 +30,16 @@ fn empty_append_only_tree() -> AppendOnlyTreeSnapshot { AppendOnlyTreeSnapshot::zero() } +// Workaround for https://github.com/noir-lang/noir/issues/1440 +fn empty_eth_address() -> EthAddress { + EthAddress::empty() +} + +// Workaround for https://github.com/noir-lang/noir/issues/1440 +fn empty_aztec_address() -> AztecAddress { + AztecAddress::empty() +} + global HEADER = Header { last_archive: empty_append_only_tree(), body_hash: [0; NUM_FIELDS_PER_SHA256], @@ -53,14 +63,7 @@ global HEADER = Header { version: 0, block_number: 0, timestamp: 0, - coinbase: EthAddress { - inner: 0 - }, - fee_recipient: AztecAddress { - inner: 0 - }, - // TODO(benesjan): figure out why this doesn't work - // coinbase: EthAddress::empty(), - // fee_recipient: AztecAddress::empty(), + coinbase: empty_eth_address(), + fee_recipient: empty_aztec_address(), } };