Skip to content

Commit

Permalink
Fix sample code compile errors.
Browse files Browse the repository at this point in the history
Ver.0.1.12
  • Loading branch information
hanatyan128 committed Dec 3, 2022
1 parent ee3aae9 commit 2223df0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ const forgeMetal = async (
cosigners: Account[],
additive?: Uint8Array,
) => {
const { key, txs, additive } = await MetalService.createForgeTxs(
const { key, txs, additive: newAdditive } = await MetalService.createForgeTxs(
type,
sourceAccount,
targetAccount,
Expand Down Expand Up @@ -913,7 +913,7 @@ const forgeMetal = async (
return {
metalId,
key,
additive,
additive: newAdditive,
};
};
```
Expand Down Expand Up @@ -969,7 +969,7 @@ const forgeMetal = async (
target: targetAccount,
targetId
});
const { key, txs, additive } = await MetalService.createForgeTxs(
const { key, txs, additive: newAdditive } = await MetalService.createForgeTxs(
type,
sourceAccount,
targetAccount,
Expand Down Expand Up @@ -1162,6 +1162,7 @@ const destroyMetal = async (
type: MetadataType,
sourceAccount: PublicAccount,
targetAccount: PublicAccount,
targetId: undefined | MosaicId | NamespaceId,
payload: Buffer,
additive: Uint8Array,
signer: Account,
Expand Down Expand Up @@ -1241,17 +1242,16 @@ const verifyMetal = async (
targetAddress,
targetId,
scopedMetadataKey: key,
} = await MetalService.getFirstChunk(metalId);
} = (await MetalService.getFirstChunk(metalId)).metadataEntry;
const { mismatches, maxLength } = await MetalService.verify(
payload,
type,
sourceAddress,
targetAddress,
key,
targetId,
metadataPool,
);
return mismatches.length === 0;
return mismatches === 0;
};
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metal-on-symbol",
"version": "0.1.11",
"version": "0.1.12",
"description": "Metal on Symbol PoC",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/package_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION="0.1.11";
export const PACKAGE_VERSION="0.1.12";

0 comments on commit 2223df0

Please sign in to comment.