Skip to content

Commit

Permalink
Avoid compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi committed Dec 15, 2023
1 parent 7ca073d commit 7233afc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zkbob/manager/MPCWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ contract MPCWrapper is Ownable, CustomABIDecoder {
return propagate();
}

/**
* @notice _tree_proof must be uint256[8] memory to avoid
* https://soliditylang.org/blog/2022/08/08/calldata-tuple-reencoding-head-overflow-bug/
*/
function appendDirectDepositsMPC(
uint256 _root_after,
uint256[] calldata _indices,
uint256 _out_commit,
uint256[8] calldata _batch_deposit_proof,
uint256[8] calldata _tree_proof,
uint256[8] memory _tree_proof,
uint8 mpc_count,
bytes calldata signatures
) external {
Expand Down

0 comments on commit 7233afc

Please sign in to comment.