Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Sep 3, 2023
1 parent e48211f commit 20f014f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 10 additions & 10 deletions ci/integration-tests/src/helpers/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ pub fn create_dao(
.unwrap();

let ProposalCreationPolicy::Module { addr: pre_propose } = chain
.orc
.query(
"dao_proposal_single",
&dao_proposal_single::msg::QueryMsg::ProposalCreationPolicy {}
).unwrap()
.data()
.unwrap()
else {
panic!("expected pre-propose module")
};
.orc
.query(
"dao_proposal_single",
&dao_proposal_single::msg::QueryMsg::ProposalCreationPolicy {}
).unwrap()
.data()
.unwrap()
else {
panic!("expected pre-propose module")
};
chain
.orc
.contract_map
Expand Down
8 changes: 6 additions & 2 deletions contracts/external/cw-vesting/src/suite_tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ fn test_slash_while_cancelled_counts_against_owner() {
assert_eq!(balance, distributable);

let vest = suite.query_vest();
let Status::Canceled { owner_withdrawable: pre_slash } = vest.status else { panic!("should be canceled") };
let Status::Canceled { owner_withdrawable: pre_slash } = vest.status else {
panic!("should be canceled")
};

// register the slash. even though the time of the slash was
// during the vest, the contract should deduct this from
Expand All @@ -390,7 +392,9 @@ fn test_slash_while_cancelled_counts_against_owner() {
.unwrap();

let vest = suite.query_vest();
let Status::Canceled { owner_withdrawable } = vest.status else { panic!("should be canceled") };
let Status::Canceled { owner_withdrawable } = vest.status else {
panic!("should be canceled")
};
assert_eq!(pre_slash - Uint128::new(10_000_000), owner_withdrawable);
}

Expand Down

0 comments on commit 20f014f

Please sign in to comment.