Skip to content

Commit

Permalink
Fix issue with popFromAuthZone.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Sep 27, 2023
1 parent b6bdb37 commit bec2516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@radixdlt/radix-engine-toolkit",
"version": "1.0.0",
"version": "1.0.1",
"description": "A TypeScript wrapper for the Radix Engine Toolkit that provides many of the necessary tools to interact with the Radix ledger",
"types": "./dist/index.d.ts",
"main": "./dist/radix-engine-toolkit.umd.js",
Expand Down
6 changes: 4 additions & 2 deletions src/builder/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,14 @@ export class ManifestBuilder {
return this;
}

popFromAuthZone(): this {
popFromAuthZone(callback: (builder: this, proofId: number) => this): this {
const instruction: Instruction = {
kind: "PopFromAuthZone",
};
this.instructions.push(instruction);
return this;

const proofId = this.idAllocator.proof();
return callback(this, proofId);
}

pushToAuthZone(proofId: number): this {
Expand Down

0 comments on commit bec2516

Please sign in to comment.