Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Feb 29, 2024
1 parent ceaf261 commit 63da191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import { NullifierKeyValidationRequestContext } from '../nullifier_key_validatio
import { SideEffect, SideEffectLinkedToNoteHash } from '../side_effects.js';
import { NewContractData } from './new_contract_data.js';

// const log = createDebugLogger('aztec:combined_accumulated_data');

/**
* Read operations from the public state tree.
*/
Expand Down Expand Up @@ -331,11 +329,6 @@ export class CombinedAccumulatedData {
...nonRevertible.publicDataUpdateRequests,
].filter(x => !x.isEmpty());

// log.debug('nonSquashedWrites');
// for (const write of nonSquashedWrites) {
// log.debug(write.toFriendlyJSON());
// }

const squashedWrites = Array.from(
nonSquashedWrites
.reduce<Map<string, PublicDataUpdateRequest>>((acc, curr) => {
Expand All @@ -345,11 +338,6 @@ export class CombinedAccumulatedData {
.values(),
);

// log.debug('squashedWrites');
// for (const write of squashedWrites) {
// log.debug(write.toFriendlyJSON());
// }

const publicDataUpdateRequests = padArrayEnd(
squashedWrites,
PublicDataUpdateRequest.empty(),
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/noir-contracts.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"engines": {
"node": ">=18"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ describe('public_processor', () => {
proof,
TxL2Logs.random(2, 3),
TxL2Logs.random(3, 2),
callRequests.slice().reverse(), // unsure why we need to reverse here 😬
// reverse because `enqueuedPublicFunctions` expects the last element to be the front of the queue
callRequests.slice().reverse(),
[ExtendedContractData.random()],
);

Expand Down

0 comments on commit 63da191

Please sign in to comment.