cosmwasm-launchpad: Rename InstantiateOptions.transferAmount -> .funds

This commit is contained in:
willclarktech 2021-06-10 10:08:47 +02:00
parent e680d42427
commit eca225530f
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 4 additions and 6 deletions

View File

@ -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,
},
);

View File

@ -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,
},
};