cosmwasm: Rename Cw1CosmWasmClient.executeSubkey -> executeCw1

This commit is contained in:
willclarktech 2020-11-26 17:41:09 +00:00
parent aff7fc5095
commit fbc5e0660a
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
3 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ describe("Cw1CosmWasmClient", () => {
});
});
describe("executeSubkey", () => {
describe("executeCw1", () => {
it("works", async () => {
pendingWithoutLaunchpad();
pendingWithoutCw1();
@ -110,7 +110,7 @@ describe("Cw1CosmWasmClient", () => {
wallet,
deployedCw1.instances[0],
);
const result = await client.executeSubkey([defaultMsg]);
const result = await client.executeCw1([defaultMsg]);
expect(result.transactionHash).toBeTruthy();
});

View File

@ -34,7 +34,7 @@ export class Cw1CosmWasmClient extends SigningCosmWasmClient {
return result.can_send;
}
public async executeSubkey(msgs: readonly CosmosMsg[], memo = ""): Promise<ExecuteResult> {
public async executeCw1(msgs: readonly CosmosMsg[], memo = ""): Promise<ExecuteResult> {
const handleMsg = {
execute: {
msgs: msgs,

View File

@ -14,5 +14,5 @@ export declare class Cw1CosmWasmClient extends SigningCosmWasmClient {
);
getAccount(address?: string): Promise<Account | undefined>;
canSend(msg: CosmosMsg, address?: string): Promise<boolean>;
executeSubkey(msgs: readonly CosmosMsg[], memo?: string): Promise<ExecuteResult>;
executeCw1(msgs: readonly CosmosMsg[], memo?: string): Promise<ExecuteResult>;
}