Skip to content

Commit

Permalink
fixed integration tests err
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed May 20, 2024
1 parent 077a93a commit 402c872
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use osmosis_std::{
types::{
cosmos::{
authz::v1beta1::{Grant, MsgExec, MsgGrant},
staking::v1beta1::{MsgCreateValidator, MsgDelegate},
staking::v1beta1::{CommissionRates, Description, MsgCreateValidator, MsgDelegate},
},
cosmwasm::wasm::v1::{
AcceptedMessageKeysFilter, ContractExecutionAuthorization, ContractGrant,
Expand Down Expand Up @@ -67,8 +67,18 @@ fn test_staked_voting_power_and_update() {
staking
.create_validator(
MsgCreateValidator {
description: None,
commission: None,
description: Some(Description {
moniker: "validator".to_string(),
identity: "validator".to_string(),
website: "validator".to_string(),
security_contact: "validator".to_string(),
details: "validator".to_string(),
}),
commission: Some(CommissionRates {
rate: "1".to_string(),
max_rate: "1".to_string(),
max_change_rate: "1".to_string(),
}),
min_self_delegation: "1".to_string(),
delegator_address: validator.address(),
validator_address: valoper.to_string(),
Expand All @@ -78,7 +88,7 @@ fn test_staked_voting_power_and_update() {
}),
value: Some(Coin::new(1, DENOM).into()),
},
&validator,
validator,
)
.unwrap();

Expand All @@ -89,7 +99,7 @@ fn test_staked_voting_power_and_update() {
validator_address: valoper.to_string(),
amount: Some(Coin::new(100, DENOM).into()),
},
&staker,
staker,
)
.unwrap();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl TestEnvBuilder {
};

// Instantiate DAO
let dao = DaoCore::new(app, &msg, &accounts[0], &vec![]).unwrap();
let dao = DaoCore::new(app, &msg, &accounts[0], &[]).unwrap();

// Get voting module address, setup vp_contract helper
let vp_addr: Addr = dao.query(&DaoQueryMsg::VotingModule {}).unwrap();
Expand Down

0 comments on commit 402c872

Please sign in to comment.