mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
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:
parent
ad55a3e07f
commit
7ed17f1933
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ func TestOneElementProof(t *testing.T) {
|
||||||
t.Fatalf("prover %d: failed to verify proof: %v\nraw proof: %x", i, err, proof)
|
t.Fatalf("prover %d: failed to verify proof: %v\nraw proof: %x", i, err, proof)
|
||||||
}
|
}
|
||||||
if !bytes.Equal(val, []byte("v")) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue