diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-05 09:28:05 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-12-19 05:36:05 +0800 |
commit | 7e7880aea05b70e6d0515586a005fafe34eba850 (patch) | |
tree | 1cbc327ac771d9b6b5c36a87f13ff25b0cd0efda | |
parent | 18f028fb0833b5a5b983a213343caa7460262002 (diff) | |
download | dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar.gz dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar.bz2 dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar.lz dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar.xz dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.tar.zst dexon-sol-tools-7e7880aea05b70e6d0515586a005fafe34eba850.zip |
Conformed to hex format for constructing offsets
-rw-r--r-- | packages/contracts/contracts/extensions/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/contracts/contracts/extensions/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol b/packages/contracts/contracts/extensions/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol index f730c5a11..9bed7ba47 100644 --- a/packages/contracts/contracts/extensions/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol +++ b/packages/contracts/contracts/extensions/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol @@ -79,7 +79,6 @@ contract MixinBalanceThresholdFilterCore is MBalanceThresholdFilterCore { // Addresses that are validated below. address[] memory validatedAddresses; - ///// Do not add variables after this point. ///// ///// The assembly block may overwrite their values. ///// @@ -265,7 +264,7 @@ contract MixinBalanceThresholdFilterCore is MBalanceThresholdFilterCore { for {let addressToValidate := addressesToValidateElementPtr} lt(addressToValidate, addressesToValidateElementEndPtr) {addressToValidate := add(addressToValidate, 0x20)} { // Construct calldata for `THRESHOLD_ASSET.balanceOf` mstore(freeMemPtr, 0x70a0823100000000000000000000000000000000000000000000000000000000) - mstore(add(4, freeMemPtr), mload(addressToValidate)) + mstore(add(freeMemPtr, 0x04), mload(addressToValidate)) // call `THRESHOLD_ASSET.balanceOf` let success := call( |