Skip to content

Commit

Permalink
style(stableswap_3pool): satisfy clippy in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimen-sano committed Jan 7, 2024
1 parent 0494c05 commit 0af660f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,7 @@ fn test_feature_toggle_withdrawals_disabled() {
}),
amp_factor: None,
};
execute(
deps.as_mut(),
env.clone(),
info.clone(),
update_config_message,
)
.unwrap();
execute(deps.as_mut(), env, info, update_config_message).unwrap();

// withdraw liquidity should fail
let msg = ExecuteMsg::Receive(Cw20ReceiveMsg {
Expand Down Expand Up @@ -281,13 +275,7 @@ fn test_feature_toggle_deposits_disabled() {
}),
amp_factor: None,
};
execute(
deps.as_mut(),
env.clone(),
info.clone(),
update_config_message,
)
.unwrap();
execute(deps.as_mut(), env, info, update_config_message).unwrap();

// provide liquidity should fail
let msg = ExecuteMsg::ProvideLiquidity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ fn test_collect_protocol_fees_successful() {
to_address: "collector".to_string(),
amount: vec![Coin {
denom: "uusd".to_string(),
amount: protocol_fees_for_native.clone().first().unwrap().amount,
amount: protocol_fees_for_native.first().unwrap().amount,
}],
}))
);
Expand All @@ -428,7 +428,7 @@ fn test_collect_protocol_fees_successful() {
contract_addr: "asset0000".to_string(),
msg: to_json_binary(&Cw20ExecuteMsg::Transfer {
recipient: "collector".to_string(),
amount: protocol_fees_for_asset0000.clone().first().unwrap().amount,
amount: protocol_fees_for_asset0000.first().unwrap().amount,
})
.unwrap(),
funds: vec![],
Expand All @@ -440,7 +440,7 @@ fn test_collect_protocol_fees_successful() {
contract_addr: "asset0001".to_string(),
msg: to_json_binary(&Cw20ExecuteMsg::Transfer {
recipient: "collector".to_string(),
amount: protocol_fees_for_asset0001.clone().first().unwrap().amount,
amount: protocol_fees_for_asset0001.first().unwrap().amount,
})
.unwrap(),
funds: vec![],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn withdraw_liquidity_cw20_lp() {

let env = mock_env();
let info = mock_info("liquidity0000", &[]);
let res = execute(deps.as_mut(), env.clone(), info, msg).unwrap();
let res = execute(deps.as_mut(), env, info, msg).unwrap();
let log_withdrawn_share = res.attributes.get(2).expect("no log");
let log_refund_assets = res.attributes.get(3).expect("no log");
let msg_refund_0 = res.messages.first().expect("no message");
Expand Down Expand Up @@ -470,7 +470,7 @@ fn test_withdrawal_unauthorized() {

let env = mock_env();
let info = mock_info("addr0000", &[]);
instantiate(deps.as_mut(), env.clone(), info.clone(), msg).unwrap();
instantiate(deps.as_mut(), env, info, msg).unwrap();

// withdraw liquidity should fail
let msg = ExecuteMsg::Receive(Cw20ReceiveMsg {
Expand Down Expand Up @@ -543,7 +543,7 @@ fn test_withdrawal_wrong_message() {

let env = mock_env();
let info = mock_info("addr0000", &[]);
instantiate(deps.as_mut(), env.clone(), info.clone(), msg).unwrap();
instantiate(deps.as_mut(), env, info, msg).unwrap();

// withdraw liquidity should fail
let msg = ExecuteMsg::Receive(Cw20ReceiveMsg {
Expand Down

0 comments on commit 0af660f

Please sign in to comment.