From cc4796f9414e2be3c230d60446f7c43c1b9bb09f Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Tue, 12 Mar 2019 17:53:03 -0700 Subject: [PATCH] updated comment for calldatacopy --- contracts/asset-proxy/contracts/src/ERC1155Proxy.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contracts/asset-proxy/contracts/src/ERC1155Proxy.sol b/contracts/asset-proxy/contracts/src/ERC1155Proxy.sol index 1b2b1df3be..57862138e0 100644 --- a/contracts/asset-proxy/contracts/src/ERC1155Proxy.sol +++ b/contracts/asset-proxy/contracts/src/ERC1155Proxy.sol @@ -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))