Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
asoong committed Oct 18, 2018
1 parent acc9be9 commit 1b29dc1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions contracts/core/exchange-wrappers/lib/ZeroExOrderDataHandler.sol
Expand Up @@ -139,9 +139,14 @@ library ZeroExOrderDataHandler {
return order;
}

// Add some docs here
/*
* Encodes an erc20 token address into 0x asset data
*
* @param _tokenAddress Address of token to encode into 0x asset data
* @return bytes 0x asset data representation of a token
*/
function tokenAddressToAssetData(
address tokenAddress
address _tokenAddress
)
private
pure
Expand All @@ -154,7 +159,7 @@ library ZeroExOrderDataHandler {

assembly {
mstore(add(result, 32), selector)
mstore(add(result, 36), tokenAddress)
mstore(add(result, 36), _tokenAddress)
}

return result;
Expand Down

0 comments on commit 1b29dc1

Please sign in to comment.