Skip to content

Commit

Permalink
Add reference to the other InitCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Mar 10, 2021
1 parent 9fd06ea commit cbe5cbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/ibc-reflect/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion contracts/ibc-reflect/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions contracts/reflect/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cbe5cbb

Please sign in to comment.