substrate-erc20-multi
substrate-erc20-multi copied to clipboard
Tokens can be duplicated by transferring to own account.
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.