From 62069ac61590958cc5ca94f37157b546ca827a37 Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Sat, 2 Sep 2023 18:21:53 -0700 Subject: [PATCH] Clean up token-bindings-test --- packages/bindings-test/src/multitest.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/bindings-test/src/multitest.rs b/packages/bindings-test/src/multitest.rs index 02ff6d6..c989860 100644 --- a/packages/bindings-test/src/multitest.rs +++ b/packages/bindings-test/src/multitest.rs @@ -61,7 +61,7 @@ impl Module for TokenFactoryModule { type QueryT = TokenFactoryQuery; type SudoT = Empty; - // Builds a mock rust implementation of the expected osmosis functionality for testing + // Builds a mock rust implementation of the expected Token Factory functionality for testing fn execute( &self, api: &dyn Api, @@ -69,7 +69,7 @@ impl Module for TokenFactoryModule { router: &dyn CosmosRouter, block: &BlockInfo, sender: Addr, - msg: TokenFactoryMsg, + msg: Self::ExecT, ) -> AnyResult where ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, @@ -85,8 +85,6 @@ impl Module for TokenFactoryModule { } ADMIN.save(storage, &new_token_denom, &sender)?; - // TODO: charge the creation fee (once params is supported) - let mut denoms = DENOMS_BY_CREATOR .may_load(storage, &sender)? .unwrap_or_default(); @@ -177,7 +175,7 @@ impl Module for TokenFactoryModule { ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, QueryC: CustomQuery + DeserializeOwned + 'static, { - bail!("sudo not implemented for OsmosisModule") + bail!("sudo not implemented for TokenFactoryModule") } fn query( @@ -186,7 +184,7 @@ impl Module for TokenFactoryModule { storage: &dyn Storage, _querier: &dyn Querier, _block: &BlockInfo, - request: TokenFactoryQuery, + request: Self::QueryT, ) -> anyhow::Result { match request { TokenFactoryQuery::FullDenom {