Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan committed Oct 12, 2023
1 parent 0278142 commit 10b855b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/api/coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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<SingleSignerTransaction> {
const response = await transaferCoinTransaction({ aptosConfig: this.config, ...args });
const response = await transferCoinTransaction({ aptosConfig: this.config, ...args });
return response;
}
}
2 changes: 1 addition & 1 deletion src/internal/coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/api/coin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 10b855b

Please sign in to comment.