Skip to content

Commit

Permalink
change param from bool to object
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Jan 25, 2024
1 parent 323f0de commit a886735
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/boc/Builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,14 @@ export class Builder {

/**
* Complete cell
* @param exotic exotic flag
* @param opts options
* @returns cell
*/
endCell(exotic?: boolean) {
endCell(opts?: { exotic?: boolean }) {
return new Cell({
bits: this._bits.build(),
refs: this._refs,
exotic
exotic: opts?.exotic
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/dict/generateMerkleProof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function convertToPrunedBranch(c: Cell): Cell {
.storeUint(1, 8)
.storeBuffer(c.hash(0))
.storeUint(c.depth(0), 16)
.endCell(true);
.endCell({ exotic: true });
}

function convertToMerkleProof(c: Cell): Cell {
Expand All @@ -19,7 +19,7 @@ function convertToMerkleProof(c: Cell): Cell {
.storeBuffer(c.hash(0))
.storeUint(c.depth(0), 16)
.storeRef(c)
.endCell(true);
.endCell({ exotic: true });
}

function doGenerateMerkleProof(
Expand Down
2 changes: 1 addition & 1 deletion src/dict/generateMerkleUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function convertToMerkleUpdate(c1: Cell, c2: Cell): Cell {
.storeUint(c2.depth(0), 16)
.storeRef(c1)
.storeRef(c2)
.endCell(true);
.endCell({ exotic: true });
}

export function generateMerkleUpdate<K extends DictionaryKeyTypes, V>(
Expand Down

0 comments on commit a886735

Please sign in to comment.