From cbe5cbbf269779f9a43e2050fbb7efbb73d4a0bb Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 10 Mar 2021 16:19:35 +0100 Subject: [PATCH] Add reference to the other InitCallback --- contracts/ibc-reflect/schema/execute_msg.json | 2 +- contracts/ibc-reflect/src/msg.rs | 4 +++- contracts/reflect/src/msg.rs | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contracts/ibc-reflect/schema/execute_msg.json b/contracts/ibc-reflect/schema/execute_msg.json index fbe6798006..a9d92bb69f 100644 --- a/contracts/ibc-reflect/schema/execute_msg.json +++ b/contracts/ibc-reflect/schema/execute_msg.json @@ -3,7 +3,7 @@ "title": "ExecuteMsg", "anyOf": [ { - "description": "InitCallback is returned from reflect contract after a new contract is set up", + "description": "InitCallback is returned from reflect contract after a new contract is set up.\n\nThis type must match [CallbackMsg::InitCallback from reflect](https://github.com/CosmWasm/cosmwasm/blob/9fd06ea/contracts/reflect/src/msg.rs#L19-L24).", "type": "object", "required": [ "init_callback" diff --git a/contracts/ibc-reflect/src/msg.rs b/contracts/ibc-reflect/src/msg.rs index dd12964659..dc465c09a2 100644 --- a/contracts/ibc-reflect/src/msg.rs +++ b/contracts/ibc-reflect/src/msg.rs @@ -13,7 +13,9 @@ pub struct InstantiateMsg { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] #[serde(rename_all = "snake_case")] pub enum ExecuteMsg { - /// InitCallback is returned from reflect contract after a new contract is set up + /// InitCallback is returned from reflect contract after a new contract is set up. + /// + /// This type must match [CallbackMsg::InitCallback from reflect](https://github.com/CosmWasm/cosmwasm/blob/9fd06ea/contracts/reflect/src/msg.rs#L19-L24). InitCallback { /// id was provided in the InitMsg id: String, diff --git a/contracts/reflect/src/msg.rs b/contracts/reflect/src/msg.rs index 1c86649a81..30b56fecb9 100644 --- a/contracts/reflect/src/msg.rs +++ b/contracts/reflect/src/msg.rs @@ -16,6 +16,7 @@ pub struct InstantiateMsg { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] #[serde(rename_all = "snake_case")] pub enum CallbackMsg { + /// This type must match [ExecuteMsg::InitCallback from ibc-reflect](https://github.com/CosmWasm/cosmwasm/blob/9fd06ea/contracts/ibc-reflect/src/msg.rs#L17-L22). InitCallback { /// Callback ID provided in the InstantiateMsg id: String,