From 95c648bac87e7a58fc554dd1d41c291d70021101 Mon Sep 17 00:00:00 2001 From: Buckram Date: Thu, 4 Apr 2024 14:42:14 +0300 Subject: [PATCH] fix migratemsg type --- schema/migrate_msg.json | 4 ++-- schema/module-schema.json | 6 +++--- schema/query_msg.json | 6 +++--- schema/raw/migrate.json | 4 ++-- src/msg.rs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/schema/migrate_msg.json b/schema/migrate_msg.json index 623cc13..5ebb337 100644 --- a/schema/migrate_msg.json +++ b/schema/migrate_msg.json @@ -27,8 +27,8 @@ "additionalProperties": false, "definitions": { "AppMigrateMsg": { - "type": "string", - "enum": [] + "type": "object", + "additionalProperties": false }, "BaseMigrateMsg": { "type": "object", diff --git a/schema/module-schema.json b/schema/module-schema.json index 2af2d51..6d5b1d9 100644 --- a/schema/module-schema.json +++ b/schema/module-schema.json @@ -1,6 +1,6 @@ { "contract_name": "module-schema", - "contract_version": "0.20.0", + "contract_version": "0.21.0", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -113,8 +113,8 @@ "migrate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "MigrateMsg", - "type": "string", - "enum": [] + "type": "object", + "additionalProperties": false }, "sudo": null, "responses": { diff --git a/schema/query_msg.json b/schema/query_msg.json index 4d9cc92..e244d6a 100644 --- a/schema/query_msg.json +++ b/schema/query_msg.json @@ -78,7 +78,7 @@ "additionalProperties": false }, { - "description": "Returns the admin.", + "description": "Returns the admin. Returns [`AdminResponse`]", "type": "object", "required": [ "base_admin" @@ -92,7 +92,7 @@ "additionalProperties": false }, { - "description": "Returns module data", + "description": "Returns module data Returns [`ModuleDataResponse`]", "type": "object", "required": [ "module_data" @@ -106,7 +106,7 @@ "additionalProperties": false }, { - "description": "Returns top level owner", + "description": "Returns top level owner Returns [`TopLevelOwnerResponse`]", "type": "object", "required": [ "top_level_owner" diff --git a/schema/raw/migrate.json b/schema/raw/migrate.json index 7e58c32..7fbe8c5 100644 --- a/schema/raw/migrate.json +++ b/schema/raw/migrate.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "title": "MigrateMsg", - "type": "string", - "enum": [] + "type": "object", + "additionalProperties": false } diff --git a/src/msg.rs b/src/msg.rs index 06026c3..b0a0f0f 100644 --- a/src/msg.rs +++ b/src/msg.rs @@ -40,7 +40,7 @@ pub enum AppQueryMsg { } #[cosmwasm_schema::cw_serde] -pub enum AppMigrateMsg {} +pub struct AppMigrateMsg {} #[cosmwasm_schema::cw_serde] pub struct ConfigResponse {}