substrate-erc20-multi icon indicating copy to clipboard operation
substrate-erc20-multi copied to clipboard

Tokens can be duplicated by transferring to own account.

Open bddap opened this issue 6 years ago • 1 comments

When calling _transfer()

fn _transfer(
    token_id: u32,
    from: T::AccountId,
    to: T::AccountId,
    value: T::TokenBalance,
);

If from == to, tokens are duplicated.

To reproduce

Run the tests added in #12. One of them will fail.

bddap avatar Sep 16 '19 19:09 bddap