From f578c389550e9ce6396261ba6ce60d7556318554 Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 18 Oct 2024 13:18:40 +0400 Subject: [PATCH] fix tokenfactory --- contracts/tokenfactory/schema/query_msg.json | 8 ++++---- contracts/tokenfactory/src/contract.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/tokenfactory/schema/query_msg.json b/contracts/tokenfactory/schema/query_msg.json index dc71bfa..d86ed5d 100644 --- a/contracts/tokenfactory/schema/query_msg.json +++ b/contracts/tokenfactory/schema/query_msg.json @@ -11,11 +11,11 @@ "full_denom": { "type": "object", "required": [ - "creator_addr", + "creator", "subdenom" ], "properties": { - "creator_addr": { + "creator": { "type": "string" }, "subdenom": { @@ -62,13 +62,13 @@ "type": "object", "required": [ "creator", - "denom" + "subdenom" ], "properties": { "creator": { "type": "string" }, - "denom": { + "subdenom": { "type": "string" } }, diff --git a/contracts/tokenfactory/src/contract.rs b/contracts/tokenfactory/src/contract.rs index 497012a..c9960b8 100644 --- a/contracts/tokenfactory/src/contract.rs +++ b/contracts/tokenfactory/src/contract.rs @@ -26,7 +26,7 @@ pub fn instantiate( pub fn execute( _deps: DepsMut, env: Env, - info: MessageInfo, + _info: MessageInfo, msg: ExecuteMsg, ) -> StdResult { let msg: CosmosMsg = match msg { @@ -94,7 +94,7 @@ pub fn execute( from, to, } => MsgForceTransfer { - sender: info.sender.to_string(), + sender: env.contract.address.to_string(), amount: Some(CosmosCoin { denom, amount: amount.to_string(),