Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
faculerena committed Apr 26, 2024
1 parent 0449d9e commit 1ba041c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod vec_could_be_mapping {
}
/// Returns the percentage difference between two values.
#[ink(message)]
pub fn get_percentage_difference(&mut self, acc: AccountId) -> Result<Balance, Error> {
pub fn get_balance(&mut self, acc: AccountId) -> Result<Balance, Error> {
self.balances.get(&acc).ok_or(Error::NotFound)
}
}
Expand Down

0 comments on commit 1ba041c

Please sign in to comment.