aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-02-08 05:53:10 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:15 +0800
commit85551f4994ceea12f8dc4408db1cced5ac63b5f9 (patch)
treefe29ea396fd69bd7bb8e849bbb1632184a3c75f8 /packages/contracts/src
parentfc1cfcceca37394afe793e2e67ddf56d45c6e483 (diff)
downloaddexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar.gz
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar.bz2
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar.lz
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar.xz
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.tar.zst
dexon-sol-tools-85551f4994ceea12f8dc4408db1cced5ac63b5f9.zip
Fix compiler warnings
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/contracts/current/protocol/Exchange/Exchange.sol10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/Exchange.sol b/packages/contracts/src/contracts/current/protocol/Exchange/Exchange.sol
index 316e87373..33e4a453b 100644
--- a/packages/contracts/src/contracts/current/protocol/Exchange/Exchange.sol
+++ b/packages/contracts/src/contracts/current/protocol/Exchange/Exchange.sol
@@ -85,7 +85,9 @@ contract Exchange is SafeMath {
bytes32 orderHash;
}
- function Exchange(address _zrxToken, address _tokenTransferProxy) {
+ function Exchange(address _zrxToken, address _tokenTransferProxy)
+ public
+ {
ZRX_TOKEN_CONTRACT = _zrxToken;
TOKEN_TRANSFER_PROXY_CONTRACT = _tokenTransferProxy;
}
@@ -458,7 +460,7 @@ contract Exchange is SafeMath {
bytes32 r,
bytes32 s)
public
- constant
+ pure
returns (bool)
{
return signer == ecrecover(
@@ -476,7 +478,7 @@ contract Exchange is SafeMath {
/// @return Rounding error is present.
function isRoundingError(uint numerator, uint denominator, uint target)
public
- constant
+ pure
returns (bool)
{
uint remainder = mulmod(target, numerator, denominator);
@@ -496,7 +498,7 @@ contract Exchange is SafeMath {
/// @return Partial value of target.
function getPartialAmount(uint numerator, uint denominator, uint target)
public
- constant
+ pure
returns (uint)
{
return safeDiv(safeMul(numerator, target), denominator);