@0x/contracts-zero-ex: Add missing docstrings + fix compilation errors.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -72,7 +72,7 @@ library LibERC20Transformer {
|
||||
returns (uint256 tokenBalance)
|
||||
{
|
||||
if (isTokenETH(token)) {
|
||||
return owner.balance
|
||||
return owner.balance;
|
||||
}
|
||||
return token.balanceOf(owner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user