Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Update token-erc20.sol #953

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

CHAINDEV2016
Copy link

Integer Overflow
There may be an integer Overflow error

55、uint previousBalances = balanceOf[_from] + balanceOf[_to];
62、assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
38、 totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
138、 totalSupply -= _value; // Updates totalSupply

Integer Overflow
There may be an integer Overflow error

55、uint previousBalances = balanceOf[_from] + balanceOf[_to];
62、assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
38、    totalSupply = initialSupply * 10 ** uint256(decimals);  // Update total supply with the decimal amount
138、  totalSupply -= _value;     // Updates totalSupply
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant