Skip to content

Commit

Permalink
Merge pull request #36 from NadavPeled1998/fix/token_test
Browse files Browse the repository at this point in the history
Fix token test
  • Loading branch information
anilpdl authored Jan 21, 2025
2 parents e6154ac + 0008542 commit 0691be8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ import { decrypttoken } from '../artifacts/js/leo2js/token';
import { PrivateKey } from '@provablehq/sdk';

const TIMEOUT = 200_000;
const amount = BigInt(2);

// Available modes are evaluate | execute (Check README.md for further description)
const mode = ExecutionMode.SnarkExecute;
Expand Down Expand Up @@ -309,7 +308,7 @@ describe('deploy test', () => {
const tx = await contract.transfer_private(
decryptedRecord,
receiptAddress,
amount
amount2
);
const [record1, record2] = await tx.wait();
const decryptedRecord2 = decrypttoken(record1, account);
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ import { decrypttoken } from '../artifacts/js/leo2js/token';
import { PrivateKey } from '@provablehq/sdk';

const TIMEOUT = 200_000;
const amount = BigInt(2);

// Available modes are evaluate | execute (Check README.md for further description)
const mode = ExecutionMode.SnarkExecute;
Expand Down Expand Up @@ -309,7 +308,7 @@ describe('deploy test', () => {
const tx = await contract.transfer_private(
decryptedRecord,
receiptAddress,
amount
amount2
);
const [record1, record2] = await tx.wait();
const decryptedRecord2 = decrypttoken(record1, account);
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/template/test/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { decrypttoken } from '../artifacts/js/leo2js/token';
import { PrivateKey } from '@provablehq/sdk';

const TIMEOUT = 200_000;
const amount = BigInt(2);

// Available modes are evaluate | execute (Check README.md for further description)
const mode = ExecutionMode.SnarkExecute;
Expand Down Expand Up @@ -67,7 +66,7 @@ describe('deploy test', () => {
const tx = await contract.transfer_private(
decryptedRecord,
receiptAddress,
amount
amount2
);
const [record1, record2] = await tx.wait();
const decryptedRecord2 = decrypttoken(record1, account);
Expand Down

0 comments on commit 0691be8

Please sign in to comment.