Fix calldata related linter errors
This commit is contained in:
@@ -239,18 +239,18 @@ contract MixinSignatureValidator is
|
|||||||
view
|
view
|
||||||
returns (bool isValid)
|
returns (bool isValid)
|
||||||
{
|
{
|
||||||
bytes memory calldata = abi.encodeWithSelector(
|
bytes memory callData = abi.encodeWithSelector(
|
||||||
IWallet(walletAddress).isValidSignature.selector,
|
IWallet(walletAddress).isValidSignature.selector,
|
||||||
hash,
|
hash,
|
||||||
signature
|
signature
|
||||||
);
|
);
|
||||||
assembly {
|
assembly {
|
||||||
let cdStart := add(calldata, 32)
|
let cdStart := add(callData, 32)
|
||||||
let success := staticcall(
|
let success := staticcall(
|
||||||
gas, // forward all gas
|
gas, // forward all gas
|
||||||
walletAddress, // address of Wallet contract
|
walletAddress, // address of Wallet contract
|
||||||
cdStart, // pointer to start of input
|
cdStart, // pointer to start of input
|
||||||
mload(calldata), // length of input
|
mload(callData), // length of input
|
||||||
cdStart, // write output over input
|
cdStart, // write output over input
|
||||||
32 // output size is 32 bytes
|
32 // output size is 32 bytes
|
||||||
)
|
)
|
||||||
@@ -288,19 +288,19 @@ contract MixinSignatureValidator is
|
|||||||
view
|
view
|
||||||
returns (bool isValid)
|
returns (bool isValid)
|
||||||
{
|
{
|
||||||
bytes memory calldata = abi.encodeWithSelector(
|
bytes memory callData = abi.encodeWithSelector(
|
||||||
IValidator(signerAddress).isValidSignature.selector,
|
IValidator(signerAddress).isValidSignature.selector,
|
||||||
hash,
|
hash,
|
||||||
signerAddress,
|
signerAddress,
|
||||||
signature
|
signature
|
||||||
);
|
);
|
||||||
assembly {
|
assembly {
|
||||||
let cdStart := add(calldata, 32)
|
let cdStart := add(callData, 32)
|
||||||
let success := staticcall(
|
let success := staticcall(
|
||||||
gas, // forward all gas
|
gas, // forward all gas
|
||||||
validatorAddress, // address of Validator contract
|
validatorAddress, // address of Validator contract
|
||||||
cdStart, // pointer to start of input
|
cdStart, // pointer to start of input
|
||||||
mload(calldata), // length of input
|
mload(callData), // length of input
|
||||||
cdStart, // write output over input
|
cdStart, // write output over input
|
||||||
32 // output size is 32 bytes
|
32 // output size is 32 bytes
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user