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

Refactor/reviewing contract code and comments #234

Merged
merged 12 commits into from Aug 26, 2019

Fixing some typos.

  • Loading branch information
Freydal committed Aug 26, 2019
commit e43691735ebfc1f3522d3e5f53e5dc0846fbaf4d
@@ -129,7 +129,7 @@ contract ValidatorRegistry is Ownable {

/** @dev Expose listing data for given public key.
@notice Expose listing data for given public key.
@param pubKey Hex encoded tendermint public key
@param pubKey Hex encoded tendermint public key.
@return The listing structure corresponding to the provided key.
*/
function getListing(bytes32 pubKey) public view returns (Listing memory) {
@@ -139,7 +139,7 @@ contract ValidatorRegistry is Ownable {

/** @dev Expose several listings provided multiple public keys.
@notice Expose several listings provided multiple public keys.
@param pubKeys Hex encoded Tendermint public keys to retrieve
@param pubKeys Hex encoded Tendermint public keys to retrieve.
@return The array of listing structures corresponding to the provided keys.
*/
function getListings(bytes32[] memory pubKeys) public view returns (Listing[] memory) {
@@ -164,17 +164,17 @@ contract ValidatorRegistry is Ownable {

/** @dev Expose challenge data for a given ID.
@notice Expose challenge data for a given ID.
@param challengeId The ID to retrieve challenge data for
@param challengeId The ID to retrieve challenge data for.
@return The challenge indicated by the provided ID.
*/
function getChallenge(uint challengeId) public view returns (Challenge memory) {
return _challenges[challengeId];

}

/** @dev Expose multiple challenges by is
@notice Expose multiple challenges by is
@param challengeIds challenge ids to read
/** @dev Expose multiple challenges by ids.
@notice Expose multiple challenges by ids.
@param challengeIds challenge ids to read.
@return Array of requested challenges
*/
function getChallenges(uint[] memory challengeIds) public view returns (Challenge[] memory) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.