From 4a3be36bc6d47c4a2b2fbd2eab138b3e851280f2 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 17 Feb 2020 13:07:34 +0100 Subject: [PATCH] Rename to CosmWasmClient.sendTokens --- packages/sdk/src/cosmwasmclient.spec.ts | 6 +++--- packages/sdk/src/cosmwasmclient.ts | 2 +- packages/sdk/types/cosmwasmclient.d.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sdk/src/cosmwasmclient.spec.ts b/packages/sdk/src/cosmwasmclient.spec.ts index 32f9ea5e..3bfe3571 100644 --- a/packages/sdk/src/cosmwasmclient.spec.ts +++ b/packages/sdk/src/cosmwasmclient.spec.ts @@ -232,7 +232,7 @@ describe("CosmWasmClient", () => { amount: "1234567", }, ]; - const result = await client.sendToken(recipient, transferAmount, memo); + const result = await client.sendTokens(recipient, transferAmount, memo); await sleep(50); // wait until tx is indexed const txDetails = await new RestClient(httpUrl).txsById(result.transactionHash); @@ -419,7 +419,7 @@ describe("CosmWasmClient", () => { }); }); - describe("sendToken", () => { + describe("sendTokens", () => { it("works", async () => { pendingWithoutCosmos(); const pen = await Secp256k1Pen.fromMnemonic(faucet.mnemonic); @@ -439,7 +439,7 @@ describe("CosmWasmClient", () => { expect(before).toBeUndefined(); // send - const result = await client.sendToken(beneficiaryAddress, transferAmount, "for dinner"); + const result = await client.sendTokens(beneficiaryAddress, transferAmount, "for dinner"); const [firstLog] = result.logs; expect(firstLog).toBeTruthy(); diff --git a/packages/sdk/src/cosmwasmclient.ts b/packages/sdk/src/cosmwasmclient.ts index 0ce088dc..18b5319d 100644 --- a/packages/sdk/src/cosmwasmclient.ts +++ b/packages/sdk/src/cosmwasmclient.ts @@ -330,7 +330,7 @@ export class CosmWasmClient { }; } - public async sendToken( + public async sendTokens( recipientAddress: string, transferAmount: readonly Coin[], memo = "", diff --git a/packages/sdk/types/cosmwasmclient.d.ts b/packages/sdk/types/cosmwasmclient.d.ts index 49e49d7a..2a5208bb 100644 --- a/packages/sdk/types/cosmwasmclient.d.ts +++ b/packages/sdk/types/cosmwasmclient.d.ts @@ -83,7 +83,7 @@ export declare class CosmWasmClient { memo?: string, transferAmount?: readonly Coin[], ): Promise; - sendToken(recipientAddress: string, transferAmount: readonly Coin[], memo?: string): Promise; + sendTokens(recipientAddress: string, transferAmount: readonly Coin[], memo?: string): Promise; /** * Returns the data at the key if present (raw contract dependent storage data) * or null if no data at this key.