Skip to content

Commit

Permalink
Fixes in paragraph 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Apr 29, 2020
1 parent c8191c2 commit 40d3647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions contracts/contracts/Governance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract Governance is Config {

/// @notice Validator's status changed
event ValidatorStatusUpdate(
address validatorAddress,
address indexed validatorAddress,
bool isActive
);

Expand Down Expand Up @@ -80,6 +80,7 @@ contract Governance is Config {
function setValidator(address _validator, bool _active) external {
requireGovernor(msg.sender);
validators[_validator] = _active;
emit ValidatorStatusUpdate(_validator, _active);
}

/// @notice Check if specified address is is governor
Expand All @@ -94,9 +95,9 @@ contract Governance is Config {
require(validators[_address], "grr21"); // validator is not active
}

/// @notice Validate token id (must be less than or equal total tokens amount)
/// @notice Validate token id (must be less than or equal to total tokens amount)
/// @param _tokenId Token id
/// @return bool flag that indicates if token id is less than or equal total tokens amount
/// @return bool flag that indicates if token id is less than or equal to total tokens amount
function isValidTokenId(uint16 _tokenId) external view returns (bool) {
return _tokenId <= totalTokens;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/contracts/test/ZKSyncUnitTest.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.16;
pragma solidity ^0.5.0;

import "../generated/FranklinTest.sol";

Expand Down

0 comments on commit 40d3647

Please sign in to comment.