Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:

- run: cargo fmt --check
- run: cargo clippy --workspace --all-targets --locked -- -D warnings

# A contract module that isn't re-exported leaves the contract struct,
# its generated Client and every helper it calls unreachable, which
# surfaces as dead_code warnings on a plain library build.
- name: Build without dead_code warnings
env:
RUSTFLAGS: "-D dead_code"
run: cargo build --workspace --locked
- run: cargo test --workspace --locked

- name: Security audit
Expand Down
2 changes: 2 additions & 0 deletions contracts/milestones/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,8 @@ mod contract {
}
} // mod contract

pub use contract::*;

/// Pays each contributor their share of `milestone.remaining_budget` (the
/// unallocated remainder of the pool), computed as
/// `remaining_budget * contribution.amount / total_budget` — i.e. in
Expand Down
Loading