Change uint to uint256 (#1794)

pull/1796/head
tincho 6 years ago committed by Nicolás Venturo
parent f358a03043
commit d9d1082247
  1. 4
      contracts/drafts/SignatureBouncer.sol
  2. 2
      contracts/mocks/ERC20PausableMock.sol
  3. 4
      contracts/mocks/ERC777SenderRecipientMock.sol
  4. 4
      contracts/token/ERC20/ERC20Pausable.sol
  5. 2
      contracts/token/ERC777/IERC777Recipient.sol
  6. 2
      contracts/token/ERC777/IERC777Sender.sol

@ -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;

Loading…
Cancel
Save