Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Dec 15, 2023
1 parent 43deb12 commit f7c846c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions contracts/validators-set/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use cosmwasm_std::{
attr, ensure_eq, entry_point, to_json_binary, Addr, Attribute, Deps, Event, Order,
};
use cosmwasm_std::{attr, ensure_eq, entry_point, to_json_binary, Addr, Deps, Order};
use cosmwasm_std::{Binary, DepsMut, Env, MessageInfo, Response, StdResult};
use cw2::set_contract_version;
use lido_staking_base::helpers::answer::response;
Expand Down Expand Up @@ -41,7 +39,7 @@ pub fn instantiate(

Ok(response(
"instantiate",
"lido-validators-set",
CONTRACT_NAME,
[attr("core", core), attr("stats_contract", stats_contract)],
))
}
Expand Down Expand Up @@ -122,7 +120,7 @@ fn execute_update_config(

Ok(response(
"update_config",
"lido-validators-set",
CONTRACT_NAME,
[
attr("core", state.core),
attr("stats_contract", state.stats_contract),
Expand Down Expand Up @@ -157,7 +155,7 @@ fn execute_update_validator(

Ok(response(
"update_validator",
"lido-validators-set",
CONTRACT_NAME,
[
attr("address", valoper_address),
attr("weight", validator.weight.to_string()),
Expand Down Expand Up @@ -197,7 +195,7 @@ fn execute_update_validators(

Ok(response(
"update_validators",
"lido-validators-set",
CONTRACT_NAME,
[attr("total_count", validators.len().to_string())],
))
}
Expand Down Expand Up @@ -247,7 +245,7 @@ fn execute_update_validators_info(

Ok(response(
"update_validators_info",
"lido-validators-set",
CONTRACT_NAME,
[attr("total_count", validators_update.len().to_string())],
))
}
Expand Down

0 comments on commit f7c846c

Please sign in to comment.