Update proof_test.go

This commit is contained in:
splinter 2026-02-10 23:34:08 +01:00 committed by GitHub
parent 92df1d57dc
commit ef6cfcd4b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -429,7 +429,7 @@ func TestSingleSideRangeProof(t *testing.T) {
if err := trie.Prove(common.Hash{}.Bytes(), proof); err != nil {
t.Fatalf("Failed to prove the first node %v", err)
}
if err := trie.Prove(entries[pos].k, proof); err != nil {
if err := trie.Prove(entries[pos].k, proof); err != nil {
t.Fatalf("Failed to prove the first node %v", err)
}
k := make([][]byte, 0, pos+1)
@ -633,7 +633,7 @@ func TestHasRightElement(t *testing.T) {
t.Fatalf("Failed to prove the first node %v", err)
}
}
if err := trie.Prove(entries[c.end-1].k, proof); err != nil {
if err := trie.Prove(entries[c.end-1].k, proof); err != nil {
t.Fatalf("Failed to prove the first node %v", err)
}
k := make([][]byte, 0, end-start)