Skip to content

Commit

Permalink
Updated blockhash to reflect new RNG interface
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Apr 10, 2024
1 parent 633ccf3 commit 0430960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/RngBlockhash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ contract RngBlockhash is IRng {
return _isRequestComplete(requestId);
}

/// @inheritdoc IRng
function isRequestFailed(uint32) external pure returns (bool) {
return false;
}

/// @notice Gets the random number produced by the 3rd-party service
/// @param requestId The ID of the request used to get the results of the RNG service
/// @return randomNum The random number
Expand Down

0 comments on commit 0430960

Please sign in to comment.