File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/protocol/src/model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class StateTransitionProvableBatch extends Struct({
75
75
) : StateTransitionProvableBatch {
76
76
const batch = transitions . map ( ( entry ) => entry . transition ) ;
77
77
const transitionTypes = transitions . map ( ( entry ) => entry . type ) ;
78
-
78
+ const witnesses = merkleWitnesses . slice ( ) ;
79
79
// Check that order is correct
80
80
let normalSTsStarted = false ;
81
81
transitionTypes . forEach ( ( x ) => {
@@ -90,11 +90,12 @@ export class StateTransitionProvableBatch extends Struct({
90
90
while ( batch . length < constants . stateTransitionProverBatchSize ) {
91
91
batch . push ( ProvableStateTransition . dummy ( ) ) ;
92
92
transitionTypes . push ( ProvableStateTransitionType . normal ) ;
93
+ witnesses . push ( new RollupMerkleTreeWitness ( { path : [ ] , isLeft : [ ] } ) ) ;
93
94
}
94
95
return new StateTransitionProvableBatch ( {
95
96
batch,
96
97
transitionTypes,
97
- merkleWitnesses,
98
+ merkleWitnesses : witnesses ,
98
99
} ) ;
99
100
}
100
101
You can’t perform that action at this time.
0 commit comments