diff --git a/packages/graz/src/actions/methods.ts b/packages/graz/src/actions/methods.ts index 765da1a1..efe3ad74 100644 --- a/packages/graz/src/actions/methods.ts +++ b/packages/graz/src/actions/methods.ts @@ -139,14 +139,16 @@ export interface ExecuteContractArgs> { senderAddress: string; contractAddress: string; funds: Coin[]; - memo: string | undefined; + memo: string; } export type ExecuteContractMutationArgs> = Omit< ExecuteContractArgs, - "contractAddress" | "senderAddress" | "fee" + "contractAddress" | "senderAddress" | "fee" | "funds" | "memo" > & { fee?: StdFee | "auto" | number; + funds?: Coin[]; + memo?: string; }; export const executeContract = async >({ diff --git a/packages/graz/src/hooks/methods.ts b/packages/graz/src/hooks/methods.ts index 0d5cbf67..95e9eb32 100644 --- a/packages/graz/src/hooks/methods.ts +++ b/packages/graz/src/hooks/methods.ts @@ -222,7 +222,8 @@ export const useExecuteContract = >({ fee: args.fee ?? "auto", senderAddress: accountAddress, contractAddress, - funds: args.funds || [], + memo: args.memo ?? "", + funds: args.funds ?? [], }; return executeContract(executeArgs);