Skip to content

Commit bf1dd38

Browse files
authored
fix: fix da verifier row root node creation (#197)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. --> closes #193 The test that fails if this fix is absent is in here: #160 ## Checklist <!-- Please complete the checklist to ensure that the PR is ready to be reviewed. IMPORTANT: PRs should be left in Draft until the below checklist is completed. --> - [ ] New and updated code has appropriate documentation - [ ] New and updated code has new and/or updated testing - [ ] Required CI checks are passing - [ ] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords
1 parent 288d9bb commit bf1dd38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/verifier/DAVerifier.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ library DAVerifier {
107107
uint256 cursor = 0;
108108
for (uint256 i = 0; i < _sharesProof.shareProofs.length; i++) {
109109
uint256 sharesUsed = _sharesProof.shareProofs[i].endKey - _sharesProof.shareProofs[i].beginKey;
110-
NamespaceNode memory rowRoot =
111-
NamespaceNode(_sharesProof.namespace, _sharesProof.namespace, _sharesProof.rowRoots[i].digest);
112110
if (
113111
!NamespaceMerkleTree.verifyMulti(
114-
rowRoot,
112+
_sharesProof.rowRoots[i],
115113
_sharesProof.shareProofs[i],
116114
_sharesProof.namespace,
117115
slice(_sharesProof.data, cursor, cursor + sharesUsed)

0 commit comments

Comments
 (0)