git.delta.rocks / unique-network / refs/commits / 4edeec7b110a

difftreelog

CORE-243

str-mv2021-11-25parent: #1fe4065.patch.diff
in: master

1 file changed

modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
467 token: TokenId,467 token: TokenId,
468 amount: u128,468 amount: u128,
469 ) {469 ) {
470 if amount == 0 {
471 <Allowance<T>>::remove((collection.id, token, sender, spender));
472 } else {
470 <Allowance<T>>::insert((collection.id, token, sender, spender), amount);473 <Allowance<T>>::insert((collection.id, token, sender, spender), amount);
474 }
471 // TODO: ERC20 approval event475 // TODO: ERC20 approval event
472 <PalletCommon<T>>::deposit_event(CommonEvent::Approved(476 <PalletCommon<T>>::deposit_event(CommonEvent::Approved(
473 collection.id,477 collection.id,