Skip to content

Commit

Permalink
using read_struct on Header
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 30, 2024
1 parent 6342a9a commit e92a7a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions yarn-project/aztec-nr/aztec/src/context.nr
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,7 @@ impl PrivateContext {
unencrypted_logs_hash: reader.read_array([0; NUM_FIELDS_PER_SHA256]),
encrypted_log_preimages_length: reader.read(),
unencrypted_log_preimages_length: reader.read(),
historical_header: Header{
// Must match order in `private_circuit_public_inputs.nr`
last_archive: reader.read_struct(AppendOnlyTreeSnapshot::deserialize),
body_hash: reader.read_array([0; NUM_FIELDS_PER_SHA256]),
state: reader.read_struct(StateReference::deserialize),
global_variables: reader.read_struct(GlobalVariables::deserialize),
},
historical_header: reader.read_struct(Header::deserialize),
contract_deployment_data: ContractDeploymentData {
deployer_public_key: GrumpkinPoint {
x: reader.read(),
Expand Down

0 comments on commit e92a7a5

Please sign in to comment.