From 0d018643e464a34cecbc84c83a669056d732fc07 Mon Sep 17 00:00:00 2001 From: maayan Date: Wed, 11 Oct 2023 15:44:35 -0700 Subject: [PATCH] fix typo --- src/api/coin.ts | 6 +++--- src/internal/coin.ts | 2 +- tests/e2e/api/coin.test.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api/coin.ts b/src/api/coin.ts index e157565a0..a5e717250 100644 --- a/src/api/coin.ts +++ b/src/api/coin.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { Account } from "../core"; -import { transaferCoinTransaction } from "../internal/coin"; +import { transferCoinTransaction } from "../internal/coin"; import { SingleSignerTransaction, GenerateTransactionOptions } from "../transactions/types"; import { AnyNumber, HexInput, MoveResourceType } from "../types"; import { AptosConfig } from "./aptos_config"; @@ -27,14 +27,14 @@ export class Coin { * * @returns SingleSignerTransaction */ - async transaferCoinTransaction(args: { + async transferCoinTransaction(args: { sender: Account; recipient: HexInput; amount: AnyNumber; coinType?: MoveResourceType; options?: GenerateTransactionOptions; }): Promise { - const response = await transaferCoinTransaction({ aptosConfig: this.config, ...args }); + const response = await transferCoinTransaction({ aptosConfig: this.config, ...args }); return response; } } diff --git a/src/internal/coin.ts b/src/internal/coin.ts index fd3aebb1b..1b030dd40 100644 --- a/src/internal/coin.ts +++ b/src/internal/coin.ts @@ -7,7 +7,7 @@ import { HexInput, AnyNumber, MoveResourceType } from "../types"; import { APTOS_COIN } from "../utils/const"; import { generateTransaction } from "./transaction_submission"; -export async function transaferCoinTransaction(args: { +export async function transferCoinTransaction(args: { aptosConfig: AptosConfig; sender: Account; recipient: HexInput; diff --git a/tests/e2e/api/coin.test.ts b/tests/e2e/api/coin.test.ts index d18ca4d53..0073b2d49 100644 --- a/tests/e2e/api/coin.test.ts +++ b/tests/e2e/api/coin.test.ts @@ -12,7 +12,7 @@ describe("coin", () => { const recipient = Account.generate({ scheme: SigningScheme.Ed25519 }); await aptos.fundAccount({ accountAddress: sender.accountAddress.toString(), amount: 100000000 }); - const transaction = await aptos.transaferCoinTransaction({ + const transaction = await aptos.transferCoinTransaction({ sender, recipient: recipient.accountAddress.toString(), amount: 10, @@ -33,7 +33,7 @@ describe("coin", () => { const recipient = Account.generate({ scheme: SigningScheme.Ed25519 }); await aptos.fundAccount({ accountAddress: sender.accountAddress.toString(), amount: 100000000 }); - const transaction = await aptos.transaferCoinTransaction({ + const transaction = await aptos.transferCoinTransaction({ sender, recipient: recipient.accountAddress.toString(), amount: 10, @@ -57,7 +57,7 @@ describe("coin", () => { await aptos.fundAccount({ accountAddress: sender.accountAddress.toString(), amount: 100000000 }); const senderCoinsBefore = await aptos.getAccountCoinsData({ accountAddress: sender.accountAddress.toString() }); - const transaction = await aptos.transaferCoinTransaction({ + const transaction = await aptos.transferCoinTransaction({ sender, recipient: recipient.accountAddress.toString(), amount: 10,