Skip to content

Commit b060765

Browse files
committed
Preheating and unit tests
1 parent d208a8b commit b060765

File tree

4 files changed

+222
-178
lines changed

4 files changed

+222
-178
lines changed

l1-contracts/src/core/libraries/rollup/STFLib.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ library STFLib {
7070
blockLog.blobCommitmentsHash = bytes32(uint256(0x1));
7171
}
7272

73+
if (blockLog.attestationsHash == bytes32(0)) {
74+
blockLog.attestationsHash = bytes32(uint256(0x1));
75+
}
76+
77+
if (blockLog.payloadDigest == bytes32(0)) {
78+
blockLog.payloadDigest = bytes32(uint256(0x1));
79+
}
80+
7381
store.tempBlockLogs[i] = blockLog.compress();
7482
}
7583
}

l1-contracts/test/Rollup.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ contract RollupTest is RollupBase {
861861
end: _end,
862862
args: args,
863863
fees: fees,
864-
attestations: CommitteeAttestations({signatureIndices: "", signaturesOrAddresses: ""}),
864+
attestations: CommitteeAttestations({signatureIndices: "", signaturesOrAddresses: ""}), // TODO(palla): Add unit tests with non-empty attestations
865865
blobInputs: _blobInputs,
866866
proof: ""
867867
})

0 commit comments

Comments
 (0)