cccz
The Flan contract is inherited from the ERC677 contract. In the transferAndCall function of the ERC677 contract, the super.transfer and _transfer functions will be called, which will cause the token to be sent twice.
function transferAndCall(
address _to,
uint256 _value,
bytes memory _data
) public returns (bool success) {
super.transfer(_to, _value);
_transfer(msg.sender, _to, _value);
if (isContract(_to)) {
contractFallback(_to, _value, _data);
}
return true;
}
None
function transferAndCall(
address _to,
uint256 _value,
bytes memory _data
) public returns (bool success) {
- super.transfer(_to, _value);
_transfer(msg.sender, _to, _value);
if (isContract(_to)) {
contractFallback(_to, _value, _data);
}
return true;
}
The text was updated successfully, but these errors were encountered:
All reactions