Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Dec 24, 2024
1 parent a4a76f7 commit a40b524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions yarn-project/circuit-types/src/tx/tx_hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export class TxHash {
return new TxHash(Fr.ZERO);
}

public isZero() {
return this.equals(TxHash.zero());
}

static get SIZE() {
return Fr.SIZE_IN_BYTES;
}
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/prover-client/src/block_builder/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
MerkleTreeId,
type MerkleTreeWriteOperations,
type ProcessedTx,
TxHash,
makeEmptyProcessedTx,
toNumBlobFields,
} from '@aztec/circuit-types';
Expand Down Expand Up @@ -53,7 +54,7 @@ export class LightweightBlockBuilder implements BlockBuilder {
this.numTxs = Math.max(2, txs.length);
this.spongeBlobState = SpongeBlob.init(toNumBlobFields(txs));
for (const tx of txs) {
this.logger.debug(tx.equals.isZero() ? 'Adding padding tx to block' : 'Adding new tx to block', {
this.logger.debug(tx.hash.equals(TxHash.zero()) ? 'Adding padding tx to block' : 'Adding new tx to block', {
txHash: tx.hash.toString(),
});
this.txs.push(tx);
Expand Down

0 comments on commit a40b524

Please sign in to comment.