Skip to content

Commit ad77ece

Browse files
committed
Fix naming
1 parent 0d17c69 commit ad77ece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/protocol/src/prover/statetransition/StateTransitionProver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ export class StateTransitionProverProgrammable extends ZkProgrammable<
185185
state: StateTransitionProverExecutionState,
186186
transition: ProvableStateTransition,
187187
type: ProvableStateTransitionType,
188-
witness: RollupMerkleTreeWitness,
188+
merkleWitness: RollupMerkleTreeWitness,
189189
index = 0
190190
) {
191-
const membershipValid = witness.checkMembership(
191+
const membershipValid = merkleWitness.checkMembership(
192192
state.stateRoot,
193193
transition.path,
194194
transition.from.value
@@ -203,7 +203,7 @@ export class StateTransitionProverProgrammable extends ZkProgrammable<
203203
)
204204
);
205205

206-
const newRoot = witness.calculateRoot(transition.to.value);
206+
const newRoot = merkleWitness.calculateRoot(transition.to.value);
207207

208208
state.stateRoot = Provable.if(
209209
transition.to.isSome,

0 commit comments

Comments
 (0)