Skip to content

Commit

Permalink
Fix solidity linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustoL committed Jan 17, 2018
1 parent d060d29 commit 2b008f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
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);

}

0 comments on commit 2b008f4

Please sign in to comment.