Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added revert message where missing. #10340

Merged
merged 4 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract IdentityProxyHub is UsingRegistry {
payable
returns (bytes memory)
soloseng marked this conversation as resolved.
Show resolved Hide resolved
{
require(passesIdentityHeuristic(msg.sender, identifier));
require(passesIdentityHeuristic(msg.sender, identifier), "does not pass identity heuristic");
return getOrDeployIdentityProxy(identifier).makeCall.value(msg.value)(destination, data);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/contracts/stability/SortedOracles.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract SortedOracles is ISortedOracles, ICeloVersionedContract, Ownable, Initi
* @return Patch version of the contract.
*/
function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) {
return (1, 1, 2, 1);
return (1, 1, 2, 2);
}

/**
Expand Down Expand Up @@ -171,7 +171,7 @@ contract SortedOracles is ISortedOracles, ICeloVersionedContract, Ownable, Initi
* @return The address of the last report.
*/
function isOldestReportExpired(address token) public view returns (bool, address) {
require(token != address(0));
require(token != address(0), "token address cannot be null");
address oldest = timestamps[token].getTail();
uint256 timestamp = timestamps[token].getValue(oldest);
// solhint-disable-next-line not-rely-on-time
Expand Down