diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-14 08:02:13 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-12-19 05:36:05 +0800 |
commit | bb4ce9b3ad5658b16027c53cb4bad07149dcff4e (patch) | |
tree | 1c3dce95e173a2e1a978451cde0802c4b846cb86 /contracts/extensions | |
parent | b524ac7af2ebf0f00c50ae3c1ad7cd85ab8b6462 (diff) | |
download | dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar.gz dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar.bz2 dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar.lz dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar.xz dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.tar.zst dexon-sol-tools-bb4ce9b3ad5658b16027c53cb4bad07149dcff4e.zip |
Explicit returns
Diffstat (limited to 'contracts/extensions')
-rw-r--r-- | contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol | 1 | ||||
-rw-r--r-- | contracts/extensions/contracts/BalanceThresholdFilter/MixinExchangeCalldata.sol | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol b/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol index 27767ad98..3e292c035 100644 --- a/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol +++ b/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol @@ -129,5 +129,6 @@ contract MixinBalanceThresholdFilterCore is revert("INVALID_OR_BLOCKED_EXCHANGE_SELECTOR"); } // solhint-enable expression-indent + return addressesToValidate; } } diff --git a/contracts/extensions/contracts/BalanceThresholdFilter/MixinExchangeCalldata.sol b/contracts/extensions/contracts/BalanceThresholdFilter/MixinExchangeCalldata.sol index d49b7123f..bd26a468f 100644 --- a/contracts/extensions/contracts/BalanceThresholdFilter/MixinExchangeCalldata.sol +++ b/contracts/extensions/contracts/BalanceThresholdFilter/MixinExchangeCalldata.sol @@ -50,6 +50,7 @@ contract MixinExchangeCalldata is let exchangeCalldataOffset := add(exchangeTxPtr, add(0x24, offset)) value := calldataload(exchangeCalldataOffset) } + return value; } /// @dev Convenience function that skips the 4 byte selector when loading @@ -61,6 +62,7 @@ contract MixinExchangeCalldata is returns (bytes32 value) { value = exchangeCalldataload(offset + 4); + return value; } /// @dev Extracts the maker address from an order stored in the Exchange calldata |