Fix compile warnings
This commit is contained in:
parent
7c07cde46d
commit
414e437b60
|
@ -51,11 +51,11 @@ contract BasicBridge is EternalStorage, Validatable {
|
|||
}
|
||||
|
||||
function setTotalExecutedPerDay(uint256 _day, uint256 _value) internal {
|
||||
uintStorage[keccak256("totalExecutedPerDay", _day)] = _value;
|
||||
uintStorage[keccak256(abi.encodePacked("totalExecutedPerDay", _day))] = _value;
|
||||
}
|
||||
|
||||
function totalExecutedPerDay(uint256 _day) public view returns(uint256) {
|
||||
return uintStorage[keccak256("totalExecutedPerDay", _day)];
|
||||
return uintStorage[keccak256(abi.encodePacked("totalExecutedPerDay", _day))];
|
||||
}
|
||||
|
||||
function minPerTx() public view returns(uint256) {
|
||||
|
|
|
@ -40,7 +40,7 @@ contract BasicForeignBridge is EternalStorage, Validatable {
|
|||
return boolStorage[keccak256(abi.encodePacked("relayedMessages", _txHash))];
|
||||
}
|
||||
|
||||
function messageWithinLimits(uint256) internal returns(bool) {
|
||||
function messageWithinLimits(uint256) internal view returns(bool) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ contract BasicHomeBridge is EternalStorage, Validatable {
|
|||
return Message.requiredMessageLength();
|
||||
}
|
||||
|
||||
function affirmationWithinLimits(uint256) internal returns(bool) {
|
||||
function affirmationWithinLimits(uint256) internal view returns(bool) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ contract ForeignBridgeErcToNative is BasicBridge, BasicForeignBridge {
|
|||
addressStorage[keccak256(abi.encodePacked("erc20token"))] = _token;
|
||||
}
|
||||
|
||||
function messageWithinLimits(uint256 _amount) internal returns(bool) {
|
||||
function messageWithinLimits(uint256 _amount) internal view returns(bool) {
|
||||
return withinExecutionLimit(_amount);
|
||||
}
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ contract HomeBridgeErcToNative is EternalStorage, BasicBridge, BasicHomeBridge {
|
|||
uintStorage[keccak256(abi.encodePacked("totalBurntCoins"))] = _amount;
|
||||
}
|
||||
|
||||
function affirmationWithinLimits(uint256 _amount) internal returns(bool) {
|
||||
function affirmationWithinLimits(uint256 _amount) internal view returns(bool) {
|
||||
return withinExecutionLimit(_amount);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue