cosmwasm: Rename Cw1CosmWasmClient.executeSubkey -> executeCw1
This commit is contained in:
parent
aff7fc5095
commit
fbc5e0660a
@ -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();
|
||||
});
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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>;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user