Instantiate

Instantiate Msg

The DeFund CosmWasm instantiate entry point is handled very similarly to any normal Cosmwasm contract.

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn instantiate(
  deps: DepsMut,
  _env: Env,
  _info: MessageInfo,
  msg: InstantiateMsg,
) -> Result<Response, StdError> {
  // ...etc
}

See https://docs.cosmwasm.com/docs/1.0/smart-contracts/entry-points for more info.

Last updated