소스 검색

Update comments

Ali Behjati 2 년 전
부모
커밋
6b81f89a42

+ 1 - 1
target_chains/ethereum/contracts/contracts/libraries/MerkleTree.sol

@@ -36,7 +36,7 @@ library MerkleTree {
         return hash(abi.encodePacked(MERKLE_NODE_PREFIX, childA, childB));
     }
 
-    /// @notice Verify Merkle Tree proof for given leaf data based on data on memory.
+    /// @notice Verify Merkle Tree proof for given leaf data.
     /// @dev To optimize gas usage, this method doesn't take the proof as a bytes array
     /// but rather takes the encoded proof and the offset of the proof in the
     /// encoded proof array possibly containing multiple proofs. Also, the method

+ 2 - 3
target_chains/ethereum/contracts/contracts/libraries/external/UnsafeCalldataBytesLib.sol

@@ -1,10 +1,9 @@
 // SPDX-License-Identifier: Unlicense
 /*
- * @title Solidity Bytes Arrays Utils
- * @author Gonçalo Sá <goncalo.sa@consensys.net>
+ * @title Solidity Calldata Bytes Arrays Utils
  *
  * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
- *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
+ *      The library lets you slice and type cast bytes arrays in calldata.
  *
  * @notice This is the **unsafe** version of BytesLib which removed all the checks (out of bound, ...)
  * to be more gas efficient.