MigrateContract()
Less than 1 minute
MigrateContract()
import { defaultRegistryTypes } from "@cosmjs/stargate";
const foundMsgType = defaultRegistryTypes.find(
(element) => element[0] === "/cosmwasm.wasm.v1.MsgMigrateContract"
)
const finalMsg = {
typeUrl: foundMsgType[0],
value: foundMsgType[1].fromPartial({
"sender": "",
"contract": "",
"codeId": "0",
"msg": {}
}),
}
// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")