Skip to content

Commit

Permalink
Code rework
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Oct 27, 2023
1 parent 3b919e5 commit 46d2475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/contracts/query/QueryResponse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ abstract contract QueryResponse {
uint8 public constant QT_ETH_CALL = 1;
uint8 public constant QT_ETH_CALL_BY_TIMESTAMP = 2;
uint8 public constant QT_ETH_CALL_WITH_FINALITY = 3;
uint8 public constant QT_ETH_CALL_MAX = 4; // Keep this last
uint8 public constant QT_MAX = 4; // Keep this last

/// @dev getResponseHash computes the hash of the specified query response.
function getResponseHash(bytes memory response) public pure returns (bytes32) {
Expand Down Expand Up @@ -156,7 +156,7 @@ abstract contract QueryResponse {
revert RequestTypeMismatch();
}

if (r.responses[idx].queryType < QT_ETH_CALL || r.responses[idx].queryType >= QT_ETH_CALL_MAX) {
if (r.responses[idx].queryType < QT_ETH_CALL || r.responses[idx].queryType >= QT_MAX) {
revert UnsupportedQueryType();
}

Expand Down

0 comments on commit 46d2475

Please sign in to comment.