Skip to content

Commit

Permalink
test: remove irrelevant add_native_decimals test
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Dec 18, 2023
1 parent 4757e5e commit 8074e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())]);
Expand Down

0 comments on commit 8074e9a

Please sign in to comment.