Skip to content

Commit

Permalink
Revert "fix: error due to accessed only commitments being included in…
Browse files Browse the repository at this point in the history
… new transaction"

This reverts commit bb69c2f.
  • Loading branch information
lydiagarms committed Jan 9, 2025
1 parent cca3d8a commit ad35058
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const sendTransactionBoilerplate = (node: any) => {
output[0].push(`${privateStateName}_nullifier.integer`);
}
}
if (!stateNode.accessedOnly && !stateNode.burnedOnly)
if (!stateNode.burnedOnly)
output[2].push(`${privateStateName}_newCommitment.integer`);
if (stateNode.encryptionRequired) {
output[4].push(`${privateStateName}_cipherText`);
Expand Down Expand Up @@ -923,6 +923,7 @@ export const OrchestrationCodeBoilerPlate: any = (node: any) => {
\nconst tx = { proofInput: [{customInputs: [${returnInputs}], newNullifiers: ${params[0][0]} commitmentRoot:${params[0][1]} checkNullifiers: ${params[0][3]} newCommitments: ${params[0][2]}}, proof, BackupData], nullifiers: ${params[0][1]} isNullfiersAdded: false, ${node.publicInputs?.map(input => `${input}: ${input}.integer,`)}};`
]
}

return {
statements: [
`\n\n// Send transaction to the blockchain:
Expand Down

0 comments on commit ad35058

Please sign in to comment.