Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix solidity linter errors
  • Loading branch information
AugustoL committed Jan 17, 2018
commit 2b008f4cb6eb0942ab4d71d75d906291c79be31b
4 changes: 2 additions & 2 deletions contracts/mocks/ERC827TokenMock.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pragma solidity ^0.4.13;


import '../token/ERC827Token.sol';
import "../token/ERC827Token.sol";


// mock class using ERC827 Token
contract ERC827TokenMock is ERC827Token {

function ERC827TokenMock(address initialAccount, uint256 initialBalance) {
function ERC827TokenMock(address initialAccount, uint256 initialBalance) public {
balances[initialAccount] = initialBalance;
totalSupply = initialBalance;
}
Expand Down
8 changes: 3 additions & 5 deletions contracts/mocks/MessageHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ contract MessageHelper {

event Show(bytes32 b32, uint256 number, string text);

function showMessage(
bytes32 message, uint256 number, string text
) returns (bool) {
function showMessage( bytes32 message, uint256 number, string text ) public returns (bool) {
Show(message, number, text);
return true;
}

function fail() {
function fail() public {
require(false);
}

function call(address to, bytes data) returns (bool) {
function call(address to, bytes data) public returns (bool) {
if (to.call(data))
return true;
else
Expand Down
16 changes: 5 additions & 11 deletions contracts/token/ERC827.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pragma solidity ^0.4.13;


import "./ERC20.sol";


/**
@title ERC827 interface, an extension of ERC20 token standard

Expand All @@ -11,16 +13,8 @@ import "./ERC20.sol";
*/
contract ERC827 is ERC20 {

function approve(
address _spender, uint256 _value, bytes _data
) public returns (bool);

function transfer(
address _to, uint256 _value, bytes _data
) public returns (bool);

function transferFrom(
address _from, address _to, uint256 _value, bytes _data
) public returns (bool);
function approve( address _spender, uint256 _value, bytes _data ) public returns (bool);
function transfer( address _to, uint256 _value, bytes _data ) public returns (bool);
function transferFrom( address _from, address _to, uint256 _value, bytes _data ) public returns (bool);

}
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't believe how simple the code for this contract ended up. Congrats for the awesome work. 👏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks to community and maintainers 🎉