@0x/contracts-zero-ex: Add missing docstrings + fix compilation errors.

This commit is contained in:
Lawrence Forman
2020-06-05 23:17:11 -04:00
parent 09f44b0375
commit 7b3e7c98ac
3 changed files with 4 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ interface ITransformERC20 {
/// @dev Replace the allowed deployer for transformers.
/// Only callable by the owner.
/// @param transformerDeployer The address of the trusted deployer for transformers.
function setTransformerDeployer(address transformerDeployer)
external;

View File

@@ -71,6 +71,7 @@ contract TransformERC20 is
/// @dev Initialize and register this feature.
/// Should be delegatecalled by `Migrate.migrate()`.
/// @param transformerDeployer The trusted deployer for transformers.
/// @return success `LibMigrate.SUCCESS` on success.
function migrate(address transformerDeployer) external returns (bytes4 success) {
ISimpleFunctionRegistry(address(this))
.extend(this.getTransformerDeployer.selector, _implementation);
@@ -91,6 +92,7 @@ contract TransformERC20 is
/// @dev Replace the allowed deployer for transformers.
/// Only callable by the owner.
/// @param transformerDeployer The address of the trusted deployer for transformers.
function setTransformerDeployer(address transformerDeployer)
external
override

View File

@@ -72,7 +72,7 @@ library LibERC20Transformer {
returns (uint256 tokenBalance)
{
if (isTokenETH(token)) {
return owner.balance
return owner.balance;
}
return token.balanceOf(owner);
}