Skip to content

Commit

Permalink
Updated documentation of MockUtilityToken
Browse files Browse the repository at this point in the history
  • Loading branch information
gulshanvasnani committed Dec 18, 2018
1 parent 514dd56 commit b167ec9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions contracts/test/gateway/MockUtilityToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pragma solidity ^0.5.0;
import "../../gateway/UtilityToken.sol";

/**
* @title TestUtilityToken contract
* @title MockUtilityToken contract.
*
* @notice This contract is used to mock certain functions of UtilityToken
* contract.
Expand All @@ -33,12 +33,15 @@ contract MockUtilityToken is UtilityToken {
/* Constructor */

/**
* @dev This is used for testing by mocking certain variables.
* @notice Constructor.
*
* @dev This is used for testing only.
*
* @param _token Address of branded token.
* @param _symbol Symbol of token.
* @param _name Name of token.
* @param _decimals Decimal of token.
* @param _membersManager Address of a contract that manages organization.
*/
constructor(
EIP20Interface _token,
Expand All @@ -47,16 +50,16 @@ contract MockUtilityToken is UtilityToken {
uint8 _decimals,
IsMemberInterface _membersManager
)
public
UtilityToken(_token, _symbol, _name, _decimals, _membersManager)
{}
public
UtilityToken(_token, _symbol, _name, _decimals, _membersManager)
{}

/**
* @notice Set the CoGateway address for testing.
*
* @param _coGatewayAddress CoGateway address.
*/
function setCoGatewayAddress(address _coGatewayAddress) public {
function setCoGatewayAddress(address _coGatewayAddress) external {
coGateway = _coGatewayAddress;
}

Expand Down
1 change: 1 addition & 0 deletions contracts/test/gateway/TestUtilityToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ contract TestUtilityToken is UtilityToken {
* @param _symbol Symbol of token.
* @param _name Name of token.
* @param _decimals Decimal of token.
* @param _membersManager Address of a contract that manages organization.
*/
constructor(
EIP20Interface _token,
Expand Down

0 comments on commit b167ec9

Please sign in to comment.