Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 27, 2024
1 parent 2da68a8 commit 4c7f7ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ impl EkokeSwapped {
.div(2);
let principal_slice = &slice[0..principal_len];

Principal::try_from_slice(&principal_slice)
.map_err(|err| format!("Invalid principal: {}", err.to_string()))
Principal::try_from_slice(principal_slice)
.map_err(|err| format!("Invalid principal: {}", err))
}

pub fn amount(&self) -> Result<u64, String> {
Expand Down

0 comments on commit 4c7f7ab

Please sign in to comment.