File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/protocol/src/model Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Bool , Provable , Struct } from "o1js" ;
2
- import { range , RollupMerkleTreeWitness } from "@proto-kit/common" ;
2
+ import {
3
+ InMemoryMerkleTreeStorage ,
4
+ range ,
5
+ RollupMerkleTree ,
6
+ RollupMerkleTreeWitness ,
7
+ } from "@proto-kit/common" ;
3
8
4
9
import { constants } from "../Constants" ;
5
10
@@ -90,7 +95,11 @@ export class StateTransitionProvableBatch extends Struct({
90
95
while ( batch . length < constants . stateTransitionProverBatchSize ) {
91
96
batch . push ( ProvableStateTransition . dummy ( ) ) ;
92
97
transitionTypes . push ( ProvableStateTransitionType . normal ) ;
93
- witnesses . push ( new RollupMerkleTreeWitness ( { path : [ ] , isLeft : [ ] } ) ) ;
98
+ witnesses . push (
99
+ new RollupMerkleTree ( new InMemoryMerkleTreeStorage ( ) ) . getWitness (
100
+ BigInt ( 0 )
101
+ )
102
+ ) ;
94
103
}
95
104
return new StateTransitionProvableBatch ( {
96
105
batch,
You can’t perform that action at this time.
0 commit comments