trie: fix TestOneElementProof expected value message (#32738)

- Correct the error message in TestOneElementProof to expect 'v' instead
of 'k'.
- The trie is updated with key "k" and value "v"; on mismatch the
expected value must be 'v'.
- Aligns the message with the actual test logic and other similar checks
in this file, reducing confusion during test failures. No behavioral
changes.
This commit is contained in:
radik878 2025-09-25 03:57:01 +03:00 committed by GitHub
parent ad55a3e07f
commit 7ed17f1933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ func TestOneElementProof(t *testing.T) {
t.Fatalf("prover %d: failed to verify proof: %v\nraw proof: %x", i, err, proof)
}
if !bytes.Equal(val, []byte("v")) {
t.Fatalf("prover %d: verified value mismatch: have %x, want 'k'", i, val)
t.Fatalf("prover %d: verified value mismatch: have %x, want 'v'", i, val)
}
}
}