Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Nov 22, 2024
1 parent bcae2db commit d187aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/token/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ impl Token {
TokenUtils::new(&e).events().set_admin(admin, new_admin);
}

#[cfg_attr(not(test), allow(dead_code))]
#[cfg(test)]
pub fn get_allowance(e: Env, from: Address, spender: Address) -> Option<AllowanceValue> {
let key = DataKey::Allowance(AllowanceDataKey { from, spender });
let allowance = e.storage().temporary().get::<_, AllowanceValue>(&key);
allowance
e.storage().temporary().get::<_, AllowanceValue>(&key)
}
}

Expand Down

0 comments on commit d187aca

Please sign in to comment.