cosmwasm-stargate: Update for InstantiateOptions.funds

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

View File

@ -273,7 +273,7 @@ describe("SigningCosmWasmClient", () => {
"My cool label",
{
memo: "Let's see if the memo is used",
transferAmount: funds,
funds: funds,
},
);
const wasmClient = await makeWasmClient(wasmd.endpoint);
@ -454,7 +454,7 @@ describe("SigningCosmWasmClient", () => {
},
"amazing random contract",
{
transferAmount: funds,
funds: funds,
},
);
// execute

View File

@ -245,7 +245,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
codeId: Long.fromString(new Uint53(codeId).toString()),
label: label,
initMsg: toUtf8(JSON.stringify(msg)),
funds: [...(options.transferAmount || [])],
funds: [...(options.funds || [])],
admin: options.admin,
}),
};