cosmwasm-launchpad: Rename InstantiateOptions.transferAmount -> .funds
This commit is contained in:
parent
e680d42427
commit
eca225530f
@ -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,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user