File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
sequencer/src/protocol/production/tasks Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,11 @@ export class StateTransitionProvableBatch extends Struct({
70
70
transitions : {
71
71
transition : ProvableStateTransition ;
72
72
type : ProvableStateTransitionType ;
73
- merkleWitnesses : RollupMerkleTreeWitness ;
74
- } [ ]
73
+ } [ ] ,
74
+ merkleWitnesses : RollupMerkleTreeWitness [ ]
75
75
) : StateTransitionProvableBatch {
76
76
const batch = transitions . map ( ( entry ) => entry . transition ) ;
77
77
const transitionTypes = transitions . map ( ( entry ) => entry . type ) ;
78
- const merkleWitnesses = transitions . map ( ( entry ) => entry . merkleWitnesses ) ;
79
78
80
79
// Check that order is correct
81
80
let normalSTsStarted = false ;
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class StateTransitionTask
68
68
witnessProviderReference . setWitnessProvider ( witnessProvider ) ;
69
69
70
70
const stBatch = input . stateTransitions . slice ( ) ;
71
+ const merkleWitnesses = input . merkleWitnesses . slice ( ) ;
71
72
// Array.from({
72
73
// length: ProtocolConstants.stateTransitionProverBatchSize - stBatch.length,
73
74
// }).forEach(() => {
@@ -78,7 +79,7 @@ export class StateTransitionTask
78
79
79
80
const output = await this . stateTransitionProver . runBatch (
80
81
input . publicInput ,
81
- StateTransitionProvableBatch . fromMappings ( stBatch )
82
+ StateTransitionProvableBatch . fromMappings ( stBatch , merkleWitnesses )
82
83
) ;
83
84
log . debug ( "STTask public io:" , {
84
85
input : StateTransitionProverPublicInput . toJSON ( input . publicInput ) ,
You can’t perform that action at this time.
0 commit comments