Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Post audit#1

Open
enjeyw wants to merge 7 commits intomasterfrom
post-audit
Open

Post audit#1
enjeyw wants to merge 7 commits intomasterfrom
post-audit

Conversation

@enjeyw
Copy link
Copy Markdown
Contributor

@enjeyw enjeyw commented Jan 22, 2020

No description provided.

Comment thread contracts/ERC677Token.sol

function transfer(address _to, uint256 _value) public returns (bool) {
require(superTransfer(_to, _value));
callAfterTransfer(msg.sender, _to, _value);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing callAfterTransfer to keep standard ERC20 behaviour

Comment thread contracts/ERC677Token.sol
import "./interfaces/ERC677.sol";

contract ERC677Token is ERC677, DetailedERC20, StandardToken {
contract ERC677Token is ERC20, ERC20Detailed, ERC677 {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New openzeppelin library changes a few contract names

emit WrapSwap(originalToken, wrappedToken, msg.sender);
emit WrapSwap(address(originalToken), address(wrappedToken), msg.sender);

return true;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retaining boolean returns to keep consistency with openzepplin library's implementation of erc20

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