Change uint to uint256 (#1794)
This commit is contained in:
@ -87,7 +87,7 @@ contract SignatureBouncer is SignerRole {
|
||||
*/
|
||||
function _isValidSignatureAndMethod(address account, bytes memory signature) internal view returns (bool) {
|
||||
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];
|
||||
}
|
||||
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");
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import "./PauserRoleMock.sol";
|
||||
|
||||
// mock class using ERC20Pausable
|
||||
contract ERC20PausableMock is ERC20Pausable, PauserRoleMock {
|
||||
constructor (address initialAccount, uint initialBalance) public {
|
||||
constructor (address initialAccount, uint256 initialBalance) public {
|
||||
_mint(initialAccount, initialBalance);
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ contract ERC777SenderRecipientMock is IERC777Sender, IERC777Recipient, ERC1820Im
|
||||
address operator,
|
||||
address from,
|
||||
address to,
|
||||
uint amount,
|
||||
uint256 amount,
|
||||
bytes calldata userData,
|
||||
bytes calldata operatorData
|
||||
) external {
|
||||
@ -74,7 +74,7 @@ contract ERC777SenderRecipientMock is IERC777Sender, IERC777Recipient, ERC1820Im
|
||||
address operator,
|
||||
address from,
|
||||
address to,
|
||||
uint amount,
|
||||
uint256 amount,
|
||||
bytes calldata userData,
|
||||
bytes calldata operatorData
|
||||
) external{
|
||||
|
||||
@ -20,11 +20,11 @@ contract ERC20Pausable is ERC20, Pausable {
|
||||
return super.approve(spender, value);
|
||||
}
|
||||
|
||||
function increaseAllowance(address spender, uint addedValue) public whenNotPaused returns (bool) {
|
||||
function increaseAllowance(address spender, uint256 addedValue) public whenNotPaused returns (bool) {
|
||||
return super.increaseAllowance(spender, addedValue);
|
||||
}
|
||||
|
||||
function decreaseAllowance(address spender, uint subtractedValue) public whenNotPaused returns (bool) {
|
||||
function decreaseAllowance(address spender, uint256 subtractedValue) public whenNotPaused returns (bool) {
|
||||
return super.decreaseAllowance(spender, subtractedValue);
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ interface IERC777Recipient {
|
||||
address operator,
|
||||
address from,
|
||||
address to,
|
||||
uint amount,
|
||||
uint256 amount,
|
||||
bytes calldata userData,
|
||||
bytes calldata operatorData
|
||||
) external;
|
||||
|
||||
@ -25,7 +25,7 @@ interface IERC777Sender {
|
||||
address operator,
|
||||
address from,
|
||||
address to,
|
||||
uint amount,
|
||||
uint256 amount,
|
||||
bytes calldata userData,
|
||||
bytes calldata operatorData
|
||||
) external;
|
||||
|
||||
Reference in New Issue
Block a user