aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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);