Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 13, 2024
1 parent 9b7a62d commit b38aede
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pallets/api/src/fungibles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,10 @@ pub mod pallet {
use Read::*;
match request {
TotalSupply(token) => ReadResult::TotalSupply(AssetsOf::<T>::total_supply(token)),
BalanceOf { token, owner } => {
ReadResult::BalanceOf(AssetsOf::<T>::balance(token, owner))
},
Allowance { token, owner, spender } => {
ReadResult::Allowance(AssetsOf::<T>::allowance(token, &owner, &spender))
},
BalanceOf { token, owner } =>
ReadResult::BalanceOf(AssetsOf::<T>::balance(token, owner)),
Allowance { token, owner, spender } =>
ReadResult::Allowance(AssetsOf::<T>::allowance(token, &owner, &spender)),
TokenName(token) => ReadResult::TokenName(<AssetsOf<T> as MetadataInspect<
AccountIdOf<T>,
>>::name(token)),
Expand Down

0 comments on commit b38aede

Please sign in to comment.