Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Nolan committed Apr 23, 2019
1 parent 5344c9d commit 2ec9b87
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ library Merkle {
bytes32 proofElement;
bytes32 computedHash = _leaf;
uint256 index = _index;
uint256 test;
for (uint256 i = 32; i <= _proof.length; i += 32) {
assembly {
proofElement := mload(add(_proof, i))
}
if (index % 2 == 0) {
test = 10;
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ library Merkle {
bytes32 proofElement;
bytes32 computedHash = _leaf;
uint256 index = _index;
uint256 test;
for (uint256 i = 32; i <= _proof.length; i += 32) {
assembly {
proofElement := mload(add(_proof, i))
}
if (index % 2 == 0) {
test = 10;
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ library Merkle {
bytes32 proofElement;
bytes32 computedHash = _leaf;
uint256 index = _index;
uint256 test;
for (uint256 i = 32; i <= _proof.length; i += 32) {
assembly {
proofElement := mload(add(_proof, i))
}
if (index % 2 == 0) {
test = 10;
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
Expand Down

0 comments on commit 2ec9b87

Please sign in to comment.