Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
2b008f4c
Commit
2b008f4c
authored
Jan 17, 2018
by
AugustoL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix solidity linter errors
parent
d060d299
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
18 deletions
+10
-18
ERC827TokenMock.sol
contracts/mocks/ERC827TokenMock.sol
+2
-2
MessageHelper.sol
contracts/mocks/MessageHelper.sol
+3
-5
ERC827.sol
contracts/token/ERC827.sol
+5
-11
No files found.
contracts/mocks/ERC827TokenMock.sol
View file @
2b008f4c
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;
}
...
...
contracts/mocks/MessageHelper.sol
View file @
2b008f4c
...
...
@@ -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
...
...
contracts/token/ERC827.sol
View file @
2b008f4c
pragma solidity ^0.4.13;
import "./ERC20.sol";
/**
@title ERC827 interface, an extension of ERC20 token standard
...
...
@@ -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);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment