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

Commit

Permalink
updated comment for calldatacopy
Browse files Browse the repository at this point in the history
  • Loading branch information
hysz committed Mar 14, 2019
1 parent b90146f commit cc4796f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/asset-proxy/contracts/src/ERC1155Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ contract ERC1155Proxy is
// 4 (function selector)
// + assetDataOffset
// + 32 (length of assetData)
calldatacopy(32, add(36, assetDataOffset), assetDataLength)
calldatacopy(
32, // aligned such that "offset to ids" is at the correct location for Table #3
add(36, assetDataOffset), // beginning of asset data contents
assetDataLength // length of asset data
)

// Increment by 32 the offsets to `ids`, `values`, and `data`
mstore(68, add(mload(68), 32))
Expand Down

0 comments on commit cc4796f

Please sign in to comment.