|
@@ -87,7 +87,7 @@ contract SignatureBouncer is SignerRole {
|
|
*/
|
|
*/
|
|
function _isValidSignatureAndMethod(address account, bytes memory signature) internal view returns (bool) {
|
|
function _isValidSignatureAndMethod(address account, bytes memory signature) internal view returns (bool) {
|
|
bytes memory data = new bytes(_METHOD_ID_SIZE);
|
|
bytes memory data = new bytes(_METHOD_ID_SIZE);
|
|
- for (uint i = 0; i < data.length; i++) {
|
|
|
|
|
|
+ for (uint256 i = 0; i < data.length; i++) {
|
|
data[i] = msg.data[i];
|
|
data[i] = msg.data[i];
|
|
}
|
|
}
|
|
return _isValidDataHash(keccak256(abi.encodePacked(address(this), account, data)), signature);
|
|
return _isValidDataHash(keccak256(abi.encodePacked(address(this), account, data)), signature);
|
|
@@ -102,7 +102,7 @@ contract SignatureBouncer is SignerRole {
|
|
require(msg.data.length > _SIGNATURE_SIZE, "SignatureBouncer: data is too short");
|
|
require(msg.data.length > _SIGNATURE_SIZE, "SignatureBouncer: data is too short");
|
|
|
|
|
|
bytes memory data = new bytes(msg.data.length - _SIGNATURE_SIZE);
|
|
bytes memory data = new bytes(msg.data.length - _SIGNATURE_SIZE);
|
|
- for (uint i = 0; i < data.length; i++) {
|
|
|
|
|
|
+ for (uint256 i = 0; i < data.length; i++) {
|
|
data[i] = msg.data[i];
|
|
data[i] = msg.data[i];
|
|
}
|
|
}
|
|
|
|
|