From e7e8dfa7a61e5bd9e34f44ea6e447f3b14e20efd Mon Sep 17 00:00:00 2001 From: Sophie Date: Thu, 25 Jul 2024 10:28:50 -0700 Subject: [PATCH] chore: fix compiler warnings --- .github/workflows/ci.yaml | 4 ++-- standards/src/src10.sw | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 22316f8..d4c4066 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/standards/src/src10.sw b/standards/src/src10.sw index 440a781..0ec7635 100644 --- a/standards/src/src10.sw +++ b/standards/src/src10.sw @@ -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, }