Skip to content

Commit aefb9b9

Browse files
committed
Added missing check in SettlementSmartContract
1 parent d8b69b5 commit aefb9b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/protocol/src/settlement/contracts/SettlementSmartContract.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ export abstract class SettlementSmartContractBase extends TokenContractV2 {
362362
Bool(true),
363363
"Supplied proof is not a closed BlockProof"
364364
);
365+
blockProof.publicOutput.pendingSTBatchesHash.assertEquals(
366+
Field(0),
367+
"Supplied proof is has outstanding STs to be proven"
368+
);
365369

366370
// Execute onSettlementHooks for additional checks
367371
const stateRecord: SettlementStateRecord = {

0 commit comments

Comments
 (0)