Skip to content

Commit

Permalink
fix: check
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii committed Dec 3, 2024
1 parent f89e6e5 commit a90fd01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ pub mod dapp {
/// The maximum supported app name length.
pub const MAX_LEN: usize = 32;
/// Checks whether the request is syntactically valid
pub fn check() -> Result<(), 'static str> {
(self.dapp_id.len() < Self::MAX_LEN).then(()).ok_or(AddDappSettingsError::DappIdTooLong)
pub fn check(&self) -> Result<(), AddDappSettingsError> {
(self.dapp_id.len() < Self::MAX_LEN).then_some(()).ok_or(AddDappSettingsError::DappIdTooLong)
}
}
}
Expand Down

0 comments on commit a90fd01

Please sign in to comment.