diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-04 20:45:19 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-04 20:45:19 +0800 |
commit | a87276341356e31e0712f42ada00ed5d55707a6b (patch) | |
tree | b9c86a0badb2f1e82efa6354eede587368449a87 /contracts | |
parent | 55ebb04f03e1d28ecfec4682e4424b75108dd130 (diff) | |
download | dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar.gz dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar.bz2 dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar.lz dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar.xz dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.tar.zst dexon-sol-tools-a87276341356e31e0712f42ada00ed5d55707a6b.zip |
Fix calldata related linter errors
Diffstat (limited to 'contracts')
-rw-r--r-- | contracts/core/contracts/protocol/Exchange/MixinSignatureValidator.sol | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contracts/core/contracts/protocol/Exchange/MixinSignatureValidator.sol b/contracts/core/contracts/protocol/Exchange/MixinSignatureValidator.sol index 176e28351..033f8e901 100644 --- a/contracts/core/contracts/protocol/Exchange/MixinSignatureValidator.sol +++ b/contracts/core/contracts/protocol/Exchange/MixinSignatureValidator.sol @@ -239,18 +239,18 @@ contract MixinSignatureValidator is view returns (bool isValid) { - bytes memory calldata = abi.encodeWithSelector( + bytes memory callData = abi.encodeWithSelector( IWallet(walletAddress).isValidSignature.selector, hash, signature ); assembly { - let cdStart := add(calldata, 32) + let cdStart := add(callData, 32) let success := staticcall( gas, // forward all gas walletAddress, // address of Wallet contract cdStart, // pointer to start of input - mload(calldata), // length of input + mload(callData), // length of input cdStart, // write output over input 32 // output size is 32 bytes ) @@ -288,19 +288,19 @@ contract MixinSignatureValidator is view returns (bool isValid) { - bytes memory calldata = abi.encodeWithSelector( + bytes memory callData = abi.encodeWithSelector( IValidator(signerAddress).isValidSignature.selector, hash, signerAddress, signature ); assembly { - let cdStart := add(calldata, 32) + let cdStart := add(callData, 32) let success := staticcall( gas, // forward all gas validatorAddress, // address of Validator contract cdStart, // pointer to start of input - mload(calldata), // length of input + mload(callData), // length of input cdStart, // write output over input 32 // output size is 32 bytes ) |