Fix issues with packages versions and linter (#600)
This commit is contained in:
parent
0b0e2cba9b
commit
de37e25b4b
|
@ -7,9 +7,9 @@ contract Rlp {
|
|||
uint256 constant MAX_NONCE = 256**9 - 1;
|
||||
|
||||
// count number of bytes required to represent an unsigned integer
|
||||
function count_bytes(uint256 n) pure internal returns (uint256 c) {
|
||||
uint i = 0;
|
||||
uint mask = 1;
|
||||
function count_bytes(uint256 n) internal pure returns (uint256 c) {
|
||||
uint256 i = 0;
|
||||
uint256 mask = 1;
|
||||
while (n >= mask) {
|
||||
i += 1;
|
||||
mask *= 256;
|
||||
|
@ -18,7 +18,7 @@ contract Rlp {
|
|||
return i;
|
||||
}
|
||||
|
||||
function mk_contract_address(address a, uint256 n) pure internal returns (address rlp) {
|
||||
function mk_contract_address(address a, uint256 n) internal pure returns (address rlp) {
|
||||
/*
|
||||
* make sure the RLP encoding fits in one word:
|
||||
* total_length 1 byte
|
||||
|
@ -116,7 +116,7 @@ contract GasTokenMock is Rlp {
|
|||
// Spec: Send `value` amount of tokens from address `from` to address `to`
|
||||
function transferFrom(address from, address to, uint256 value) public returns (bool success) {
|
||||
address spender = msg.sender;
|
||||
if(value <= s_allowances[from][spender] && internalTransfer(from, to, value)) {
|
||||
if (value <= s_allowances[from][spender] && internalTransfer(from, to, value)) {
|
||||
s_allowances[from][spender] -= value;
|
||||
return true;
|
||||
} else {
|
||||
|
@ -150,9 +150,9 @@ contract GasTokenMock is Rlp {
|
|||
// GasToken specifics
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
uint8 constant public decimals = 2;
|
||||
string constant public name = "Gastoken.io";
|
||||
string constant public symbol = "GST2";
|
||||
uint8 public constant decimals = 2;
|
||||
string public constant name = "Gastoken.io";
|
||||
string public constant symbol = "GST2";
|
||||
|
||||
// We build a queue of nonces at which child contracts are stored. s_head is
|
||||
// the nonce at the head of the queue, s_tail is the nonce behind the tail
|
||||
|
|
|
@ -6,7 +6,13 @@ import "../OtherSideBridgeStorage.sol";
|
|||
import "./CompoundConnector.sol";
|
||||
import "../GSNForeignERC20Bridge.sol";
|
||||
|
||||
contract ForeignBridgeErcToNative is BasicForeignBridge, ERC20Bridge, OtherSideBridgeStorage, CompoundConnector, GSNForeignERC20Bridge {
|
||||
contract ForeignBridgeErcToNative is
|
||||
BasicForeignBridge,
|
||||
ERC20Bridge,
|
||||
OtherSideBridgeStorage,
|
||||
CompoundConnector,
|
||||
GSNForeignERC20Bridge
|
||||
{
|
||||
function initialize(
|
||||
address _validatorContract,
|
||||
address _erc20token,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -46,8 +46,8 @@
|
|||
"istanbul": "^0.4.5",
|
||||
"nodemon": "^1.17.3",
|
||||
"prettier": "^1.18.2",
|
||||
"prettier-plugin-solidity": "^1.0.0-alpha.32",
|
||||
"solhint": "^2.2.0",
|
||||
"prettier-plugin-solidity": "1.0.0-alpha.32",
|
||||
"solhint": "2.2.0",
|
||||
"solhint-plugin-prettier": "0.0.3"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue