You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PublicInputs.Type memory pi = PublicInputs.create(2+2+ U256_LIMBS);
46
+
PublicInputs.Type memory pi = PublicInputs.create(1+2+ U256_LIMBS);
47
47
pi.push(getNoteHashTree().root);
48
-
pi.push(getNullifierTree().root);
49
48
pi.push(address(token));
50
49
pi.pushUint256Limbs(amount);
51
50
// TODO(security): ensure noteHash does not already exist in the noteHashTree. If it exists, the tx will never be rolled up and the money will be lost.
@@ -107,10 +106,9 @@ contract PoolERC20 is PoolGeneric {
107
106
NoteInput calldatajoinNote
108
107
) external {
109
108
PublicInputs.Type memory pi = PublicInputs.create(
110
-
2+ MAX_NOTES_TO_JOIN +1
109
+
1+ MAX_NOTES_TO_JOIN +1
111
110
);
112
111
pi.push(getNoteHashTree().root);
113
-
pi.push(getNullifierTree().root);
114
112
pi.push(joinNote.noteHash);
115
113
for (uint256 i =0; i < MAX_NOTES_TO_JOIN; i++) {
116
114
pi.push(nullifiers[i]);
@@ -137,9 +135,8 @@ contract PoolERC20 is PoolGeneric {
137
135
NoteInput calldatachangeNote,
138
136
NoteInput calldatatoNote
139
137
) external {
140
-
PublicInputs.Type memory pi = PublicInputs.create(5);
138
+
PublicInputs.Type memory pi = PublicInputs.create(4);
0 commit comments