Skip to content

Commit

Permalink
chore: fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed Jul 25, 2024
1 parent ade6077 commit e7e8dfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ 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

- name: Build All Examples
run: forc build --path examples
run: forc build --error-on-warnings --path examples
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

0 comments on commit e7e8dfa

Please sign in to comment.