Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Jul 17, 2023
1 parent daef578 commit b90f06d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 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": "0.2.0",
"version": "0.2.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
25 changes: 0 additions & 25 deletions src/builders/manifest_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
CreateIdentityAdvanced,
CreateNonFungibleResource,
CreateNonFungibleResourceWithInitialSupply,
CreateProofFromAuthZone,
CreateProofFromAuthZoneOfAll,
CreateProofFromAuthZoneOfAmount,
CreateProofFromAuthZoneOfNonFungibles,
Expand Down Expand Up @@ -305,30 +304,6 @@ export class ManifestBuilder {
return this;
}

/**
* An instruction to create a proof of one of a given resource address from the auth
* zone.
* @param resourceAddress The address of the resource to create a proof of.
* @param andThen A callback function with the manifest builder and bucket.
* @returns A `ManifestBuilder` which the caller can continue chaining calls to.
*/
createProofFromAuthZone(
resourceAddress: ManifestAstValue.Address | string,
andThen: (
builder: ManifestBuilder,
bucket: ManifestAstValue.Proof
) => ManifestBuilder
): ManifestBuilder {
const proof = this.idAllocator.newProof();
const instruction = new CreateProofFromAuthZone(
resolveAddress(resourceAddress),
proof
);
this.instructions.push(instruction);
andThen(this, proof);
return this;
}

/**
* An instruction to create a proof of the entire amount of a given resource address from the auth
* zone.
Expand Down

0 comments on commit b90f06d

Please sign in to comment.