Closed vdrg closed 6 years ago
Same for Ownable
contract
I think the Ownable contract was taken from OpenZeppelin
Yes I meant installing openZeppelin as a npm dependency and use it from there
We have new warnings. How can we handle them since they are in openzeppelin?
Compilation warnings encountered:
zeppelin-solidity/contracts/ownership/Ownable.sol:38:5: Warning: Invoking events without "emit" prefix is deprecated.
OwnershipTransferred(owner, newOwner);
^-----------------------------------^
,zeppelin-solidity/contracts/token/ERC20/BasicToken.sol:38:5: Warning: Invoking events without "emit" prefix is deprecated.
Transfer(msg.sender, _to, _value);
^-------------------------------^
,zeppelin-solidity/contracts/token/ERC20/StandardToken.sol:33:5: Warning: Invoking events without "emit" prefix is deprecated.
Transfer(_from, _to, _value);
^--------------------------^
,zeppelin-solidity/contracts/token/ERC20/StandardToken.sol:49:5: Warning: Invoking events without "emit" prefix is deprecated.
Approval(msg.sender, _spender, _value);
^------------------------------------^
,zeppelin-solidity/contracts/token/ERC20/StandardToken.sol:75:5: Warning: Invoking events without "emit" prefix is deprecated.
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
^-----------------------------------------------------------^
,zeppelin-solidity/contracts/token/ERC20/StandardToken.sol:96:5: Warning: Invoking events without "emit" prefix is deprecated.
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
^-----------------------------------------------------------^
The zeppelin guys are already working in updating their contracts to use the new emit keyword. IMO we should leave it like this and wait for zeppelin, as this warning is more about readability and doesn't really have to do with cCLP
Maybe we should close this issue and create a new one to remember to update the contracts when zeppelin upgrades them. Maybe we can send a PR to the zeppellin contracts to fix the warning too?
Use OpenZeppelin for ERC20 and SafeMath for safe operations (their contracts are already audited)