From eca225530fc6d3508e270952775c16b84b572fba Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 10 Jun 2021 10:08:47 +0200 Subject: [PATCH] cosmwasm-launchpad: Rename InstantiateOptions.transferAmount -> .funds --- .../cosmwasm-launchpad/src/signingcosmwasmclient.spec.ts | 4 ++-- packages/cosmwasm-launchpad/src/signingcosmwasmclient.ts | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/cosmwasm-launchpad/src/signingcosmwasmclient.spec.ts b/packages/cosmwasm-launchpad/src/signingcosmwasmclient.spec.ts index a8e47b2f..3636b204 100644 --- a/packages/cosmwasm-launchpad/src/signingcosmwasmclient.spec.ts +++ b/packages/cosmwasm-launchpad/src/signingcosmwasmclient.spec.ts @@ -311,7 +311,7 @@ describe("SigningCosmWasmClient", () => { "My cool label", { memo: "Let's see if the memo is used", - transferAmount: funds, + funds: funds, }, ); @@ -491,7 +491,7 @@ describe("SigningCosmWasmClient", () => { }, "amazing random contract", { - transferAmount: funds, + funds: funds, }, ); diff --git a/packages/cosmwasm-launchpad/src/signingcosmwasmclient.ts b/packages/cosmwasm-launchpad/src/signingcosmwasmclient.ts index 35998fcf..34d3f579 100644 --- a/packages/cosmwasm-launchpad/src/signingcosmwasmclient.ts +++ b/packages/cosmwasm-launchpad/src/signingcosmwasmclient.ts @@ -108,10 +108,8 @@ export interface InstantiateOptions { * created and before the instantiation message is executed by the contract. * * Only native tokens are supported. - * - * TODO: Rename to `funds` for consistency (https://github.com/cosmos/cosmjs/issues/806) */ - readonly transferAmount?: readonly Coin[]; + readonly funds?: readonly Coin[]; /** * A bech32 encoded address of an admin account. * Caution: an admin has the privilege to upgrade a contract. If this is not desired, do not set this value. @@ -238,7 +236,7 @@ export class SigningCosmWasmClient extends CosmWasmClient { code_id: new Uint53(codeId).toString(), label: label, init_msg: msg, - init_funds: options.transferAmount || [], + init_funds: options.funds || [], admin: options.admin, }, };