Skip to content

Commit 1eebc7f

Browse files
committed
fix linter issues
1 parent 660622a commit 1eebc7f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

proof_ipa.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func PreStateTreeFromProof(proof *Proof, rootC *Point) (VerkleNode, error) {
433433
return root, nil
434434
}
435435

436-
func PostStateTreeFromProof(preroot VerkleNode, statediff StateDiff, rootC *Point) (VerkleNode, error) {
436+
func PostStateTreeFromProof(preroot VerkleNode, statediff StateDiff) (VerkleNode, error) {
437437
postroot := preroot.Copy()
438438
for _, stemstatediff := range statediff {
439439
var (
@@ -458,6 +458,7 @@ func PostStateTreeFromProof(preroot VerkleNode, statediff StateDiff, rootC *Poin
458458
}
459459
}
460460
}
461+
postroot.Commit()
461462

462463
return postroot, nil
463464
}

proof_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ func TestProofVerificationWithPostState(t *testing.T) {
762762
},
763763
}
764764
for _, data := range testlist {
765+
data := data // make linter happy by not capturing the loop variable
766+
765767
t.Run(fmt.Sprintf("verification_with_post_state/%s", data.name), func(t *testing.T) {
766768
t.Parallel()
767769

0 commit comments

Comments
 (0)