Skip to content

Commit 73e0538

Browse files
author
KAMIYO
committed
format solana escrow proofs
1 parent 9ecc297 commit 73e0538

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • tests/cargo-kani/solana-agent-escrow/src

tests/cargo-kani/solana-agent-escrow/src/proofs.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ fn timelock_policy_matches_release_rule() {
1616
let allowed = can_release_funds(caller, agent, api, now, expires_at);
1717

1818
if now < expires_at {
19-
kani::assert(
20-
!allowed || caller == agent,
21-
"only agent can release before expiry",
22-
);
19+
kani::assert(!allowed || caller == agent, "only agent can release before expiry");
2320
} else {
2421
kani::assert(
2522
!allowed || (caller == agent || caller == api),
@@ -65,10 +62,7 @@ fn settlement_splits_conserve_value() {
6562
fn required_oracle_count_is_monotonic_and_bounded() {
6663
let amount: u64 = kani::any();
6764
let r = required_oracle_count(amount);
68-
kani::assert(
69-
r == MIN_ORACLES || r == 4 || r == 5,
70-
"required oracle count must be in {3,4,5}",
71-
);
65+
kani::assert(r == MIN_ORACLES || r == 4 || r == 5, "required oracle count must be in {3,4,5}");
7266

7367
let a1: u64 = kani::any();
7468
let a2: u64 = kani::any();

0 commit comments

Comments
 (0)