Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/contracts-zero-ex: Introduce the TransformERC20 feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothy-zbornak authored and merklejerk committed May 8, 2020
1 parent c68c5ac commit c51b9e5
Show file tree
Hide file tree
Showing 14 changed files with 1,584 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,32 @@ library LibTransformERC20RichErrors {
);
}

function InvalidTokensReceivedError(
address[] memory tokens
)
internal
pure
returns (bytes memory)
{
return abi.encodeWithSelector(
bytes4(keccak256("InvalidTokensReceivedError(address[])")),
tokens
);
}

function InvalidTakerFeeTokenError(
address token
)
internal
pure
returns (bytes memory)
{
return abi.encodeWithSelector(
bytes4(keccak256("InvalidTakerFeeTokenError(address)")),
token
);
}

// WethTransformer rors ////////////////////////////////////////////////////

function WrongNumberOfTokensReceivedError(
Expand Down
Loading

0 comments on commit c51b9e5

Please sign in to comment.