Skip to content

Commit

Permalink
fix: attachedDeposits should be 2yN, not 2N
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Sep 6, 2021
1 parent 35d301a commit 5213deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/03.single-use-access-keys-with-linkdrop.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe(`Running on ${Runner.getNetworkFromEnv()}`, () => {
// Create temporary keys for access key on linkdrop
const senderKey = createKeyPair();
const public_key = senderKey.getPublicKey().toString();
const attachedDeposit = NEAR.parse('2');
const attachedDeposit = NEAR.from('2');

// This adds the key as a function access key on `create_account_and_claim`
await root.call(linkdrop, 'send', {public_key}, {attachedDeposit});
Expand Down Expand Up @@ -80,7 +80,7 @@ describe(`Running on ${Runner.getNetworkFromEnv()}`, () => {
// Create temporary keys for access key on linkdrop
const senderKey = createKeyPair();
const public_key = senderKey.getPublicKey().toString();
const attachedDeposit = NEAR.parse('2');
const attachedDeposit = NEAR.from('2');

// This adds the key as a function access key on `create_account_and_claim`
await root.call(linkdrop, 'send', {public_key}, {attachedDeposit});
Expand Down

0 comments on commit 5213deb

Please sign in to comment.