Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix compiler warnings for libraries #124

Merged
merged 3 commits into from
Aug 1, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: forc fmt --path standards --check

- name: Build All Standards
run: forc build --path standards
run: forc build --error-on-warnings --path standards

- name: Check Sway Formatting Examples
run: forc fmt --path examples --check
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Description of the upcoming release here.

- [#121](https://github.com/FuelLabs/sway-standards/pull/121) Fixes the `deposit` function in the SRC-6 standard, uses try_read instead of read in order to allow first time deposits to a vault.
- [#122](https://github.com/FuelLabs/sway-standards/pull/122) Fixes the SRC-6 example contract from a critical bug where the contract can be drained.
- [#124](https://github.com/FuelLabs/sway-standards/pull/124) Fixes compiler warnings for libraries

### Breaking Unreleased

Expand Down
7 changes: 7 additions & 0 deletions standards/src/src10.sw
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,25 @@ pub enum DepositType {
/// Enscapsultes metadata sent between the canonical chain and Fuel when a deposit is made.
struct DepositMessage {
/// The number of tokens.
#[allow(dead_code)]
pub amount: b256,
/// The user's address on the canonical chain.
#[allow(dead_code)]
pub from: b256,
/// The bridging target destination on the Fuel chain.
#[allow(dead_code)]
pub to: Identity,
/// The bridged token's address on the canonical chain.
#[allow(dead_code)]
pub token_address: b256,
/// The token's ID on the canonical chain.
#[allow(dead_code)]
pub token_id: b256,
/// The decimals of the token.
#[allow(dead_code)]
pub decimals: u8,
/// The type of deposit made.
#[allow(dead_code)]
pub deposit_type: DepositType,
}

Expand Down
Loading