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 426d139
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
17 changes: 9 additions & 8 deletions ci/integration-tests/src/helpers/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +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()
.orc
.query(
"dao_proposal_single",
&dao_proposal_single::msg::QueryMsg::ProposalCreationPolicy {},
)
.unwrap()
.data()
.unwrap()
else {
panic!("expected pre-propose module")
panic!("expected pre-propose module")
};
chain
.orc
Expand Down
11 changes: 9 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,12 @@ 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")

Check warning on line 383 in contracts/external/cw-vesting/src/suite_tests/tests.rs

View check run for this annotation

Codecov / codecov/patch

contracts/external/cw-vesting/src/suite_tests/tests.rs#L383

Added line #L383 was not covered by tests
};

// register the slash. even though the time of the slash was
// during the vest, the contract should deduct this from
Expand All @@ -390,7 +395,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")

Check warning on line 399 in contracts/external/cw-vesting/src/suite_tests/tests.rs

View check run for this annotation

Codecov / codecov/patch

contracts/external/cw-vesting/src/suite_tests/tests.rs#L399

Added line #L399 was not covered by tests
};
assert_eq!(pre_slash - Uint128::new(10_000_000), owner_withdrawable);
}

Expand Down

0 comments on commit 426d139

Please sign in to comment.