Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed the cosmwasm msg types #1281

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/cosmwasm-stargate/src/signingcosmwasmclient.ts
Expand Up @@ -57,6 +57,7 @@ import {
MsgStoreCodeEncodeObject,
MsgUpdateAdminEncodeObject,
wasmTypes,
JsonObject,
} from "./modules";

export interface UploadResult {
Expand Down Expand Up @@ -137,7 +138,7 @@ export interface MigrateResult {

export interface ExecuteInstruction {
contractAddress: string;
msg: Record<string, unknown>;
msg: JsonObject;
funds?: readonly Coin[];
}

Expand Down Expand Up @@ -278,7 +279,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
public async instantiate(
senderAddress: string,
codeId: number,
msg: Record<string, unknown>,
msg: JsonObject,
label: string,
fee: StdFee | "auto" | number,
options: InstantiateOptions = {},
Expand Down Expand Up @@ -368,7 +369,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
senderAddress: string,
contractAddress: string,
codeId: number,
migrateMsg: Record<string, unknown>,
migrateMsg: JsonObject,
fee: StdFee | "auto" | number,
memo = "",
): Promise<MigrateResult> {
Expand Down Expand Up @@ -397,7 +398,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
public async execute(
senderAddress: string,
contractAddress: string,
msg: Record<string, unknown>,
msg: JsonObject,
fee: StdFee | "auto" | number,
memo = "",
funds?: readonly Coin[],
Expand Down