Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Feb 6, 2024
1 parent 9b9fe13 commit e636fcc
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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(),
}
};

0 comments on commit e636fcc

Please sign in to comment.