diff --git a/__tests__/03.single-use-access-keys-with-linkdrop.spec.ts b/__tests__/03.single-use-access-keys-with-linkdrop.spec.ts index 58a7de36..9c1b824d 100644 --- a/__tests__/03.single-use-access-keys-with-linkdrop.spec.ts +++ b/__tests__/03.single-use-access-keys-with-linkdrop.spec.ts @@ -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}); @@ -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});