Add Prettier for linting and fix Solhint config (#2697)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2021-06-07 17:33:03 +02:00
committed by GitHub
parent e3661abe84
commit b0cf6fbb7a
134 changed files with 1816 additions and 1526 deletions

View File

@ -5,62 +5,57 @@ pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
contract Implementation1 is Initializable {
uint internal _value;
uint256 internal _value;
function initialize() public initializer {
}
function initialize() public initializer {}
function setValue(uint _number) public {
_value = _number;
}
function setValue(uint256 _number) public {
_value = _number;
}
}
contract Implementation2 is Initializable {
uint internal _value;
uint256 internal _value;
function initialize() public initializer {
}
function initialize() public initializer {}
function setValue(uint _number) public {
_value = _number;
}
function setValue(uint256 _number) public {
_value = _number;
}
function getValue() public view returns (uint) {
return _value;
}
function getValue() public view returns (uint256) {
return _value;
}
}
contract Implementation3 is Initializable {
uint internal _value;
uint256 internal _value;
function initialize() public initializer {
}
function initialize() public initializer {}
function setValue(uint _number) public {
_value = _number;
}
function setValue(uint256 _number) public {
_value = _number;
}
function getValue(uint _number) public view returns (uint) {
return _value + _number;
}
function getValue(uint256 _number) public view returns (uint256) {
return _value + _number;
}
}
contract Implementation4 is Initializable {
uint internal _value;
uint256 internal _value;
function initialize() public initializer {
}
function initialize() public initializer {}
function setValue(uint _number) public {
_value = _number;
}
function setValue(uint256 _number) public {
_value = _number;
}
function getValue() public view returns (uint) {
return _value;
}
function getValue() public view returns (uint256) {
return _value;
}
// solhint-disable-next-line payable-fallback
fallback() external {
_value = 1;
}
fallback() external {
_value = 1;
}
}