mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
core: fix lint
This commit is contained in:
parent
8273f7c3f3
commit
91d0fd3c13
1 changed files with 3 additions and 3 deletions
|
|
@ -773,7 +773,7 @@ func TestProcessVerkleInvalidContractCreation(t *testing.T) {
|
|||
t.Fatalf("nil new value in BLOCKHASH contract insert")
|
||||
}
|
||||
if *stemStateDiff.SuffixDiffs[0].NewValue != chain[0].Hash() {
|
||||
t.Fatalf("invalid BLOCKHASH value: %x != %x", *&stemStateDiff.SuffixDiffs[0].NewValue, chain[0].Hash())
|
||||
t.Fatalf("invalid BLOCKHASH value: %x != %x", *stemStateDiff.SuffixDiffs[0].NewValue, chain[0].Hash())
|
||||
}
|
||||
} else {
|
||||
// For all other entries present in the witness, check that nothing beyond
|
||||
|
|
@ -878,7 +878,7 @@ func TestProcessVerkleContractWithEmptyCode(t *testing.T) {
|
|||
t.Fatalf("nil new value in BLOCKHASH contract insert")
|
||||
}
|
||||
if *stemStateDiff.SuffixDiffs[0].NewValue != chain[0].Hash() {
|
||||
t.Fatalf("invalid BLOCKHASH value: %x != %x", *&stemStateDiff.SuffixDiffs[0].NewValue, chain[0].Hash())
|
||||
t.Fatalf("invalid BLOCKHASH value: %x != %x", *stemStateDiff.SuffixDiffs[0].NewValue, chain[0].Hash())
|
||||
}
|
||||
} else {
|
||||
for _, suffixDiff := range stemStateDiff.SuffixDiffs {
|
||||
|
|
@ -1078,7 +1078,7 @@ func TestProcessVerkleBalanceOpcode(t *testing.T) {
|
|||
}
|
||||
// check the prestate balance wasn't 0 or missing
|
||||
if balanceStateDiff.CurrentValue == nil || *balanceStateDiff.CurrentValue == zero {
|
||||
t.Fatalf("invalid current value %v", *&balanceStateDiff.CurrentValue)
|
||||
t.Fatalf("invalid current value %v", *balanceStateDiff.CurrentValue)
|
||||
}
|
||||
// check that the poststate witness value for the balance is nil,
|
||||
// meaning that it didn't get updated.
|
||||
|
|
|
|||
Loading…
Reference in a new issue