diff --git a/contracts/liquidity_hub/pool-network/terraswap_factory/src/commands.rs b/contracts/liquidity_hub/pool-network/terraswap_factory/src/commands.rs index 886e0d52..c8142ae0 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_factory/src/commands.rs +++ b/contracts/liquidity_hub/pool-network/terraswap_factory/src/commands.rs @@ -1,10 +1,9 @@ use cosmwasm_std::{ - CosmosMsg, DepsMut, Env, MessageInfo, ReplyOn, Response, SubMsg, to_binary, wasm_execute, + to_binary, wasm_execute, CosmosMsg, DepsMut, Env, MessageInfo, ReplyOn, Response, SubMsg, WasmMsg, }; use white_whale::pool_network; -use white_whale::pool_network::{pair, trio}; use white_whale::pool_network::asset::{AssetInfo, PairType}; use white_whale::pool_network::pair::{ FeatureToggle, InstantiateMsg as PairInstantiateMsg, MigrateMsg as PairMigrateMsg, PoolFee, @@ -13,12 +12,13 @@ use white_whale::pool_network::trio::{ FeatureToggle as TrioFeatureToggle, InstantiateMsg as TrioInstantiateMsg, MigrateMsg as TrioMigrateMsg, PoolFee as TrioPoolFee, RampAmp, }; +use white_whale::pool_network::{pair, trio}; use crate::contract::{CREATE_PAIR_RESPONSE, CREATE_TRIO_RESPONSE}; use crate::error::ContractError; use crate::state::{ - add_allow_native_token, Config, CONFIG, pair_key, PAIRS, TMP_PAIR_INFO, TMP_TRIO_INFO, TmpPairInfo, - TmpTrioInfo, trio_key, TRIOS, + add_allow_native_token, pair_key, trio_key, Config, TmpPairInfo, TmpTrioInfo, CONFIG, PAIRS, + TMP_PAIR_INFO, TMP_TRIO_INFO, TRIOS, }; /// Updates the contract's [Config] diff --git a/contracts/liquidity_hub/pool-network/terraswap_factory/src/testing.rs b/contracts/liquidity_hub/pool-network/terraswap_factory/src/testing.rs index 3aeeb81c..991753da 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_factory/src/testing.rs +++ b/contracts/liquidity_hub/pool-network/terraswap_factory/src/testing.rs @@ -1240,26 +1240,6 @@ fn failed_add_allow_native_token_with_non_admin() { } } -#[test] -fn failed_add_allow_native_token_with_zero_factory_balance() { - let mut deps = mock_dependencies(&[coin(0u128, "uluna".to_string())]); - deps = init(deps); - - let msg = ExecuteMsg::AddNativeTokenDecimals { - denom: "uluna".to_string(), - decimals: 6u8, - }; - - let info = mock_info("addr0000", &[]); - - let res = execute(deps.as_mut(), mock_env(), info, msg); - match res { - Ok(_) => panic!("should return ContractError::InvalidVerificationBalance"), - Err(ContractError::InvalidVerificationBalance {}) => (), - _ => panic!("should return ContractError::InvalidVerificationBalance"), - } -} - #[test] fn append_add_allow_native_token_with_already_exist_token() { let mut deps = mock_dependencies(&[coin(1u128, "uluna".to_string())]);