mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
fix bug about the statedb test case
This commit is contained in:
parent
18a902799e
commit
697e0335af
1 changed files with 3 additions and 1 deletions
|
|
@ -641,7 +641,9 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error {
|
||||||
{
|
{
|
||||||
have := state.transientStorage
|
have := state.transientStorage
|
||||||
want := checkstate.transientStorage
|
want := checkstate.transientStorage
|
||||||
if !maps.EqualFunc(have, want, maps.Equal) {
|
if !maps.EqualFunc(have, want, func(hasStorage Storage, wantStorage Storage) bool {
|
||||||
|
return maps.Equal(hasStorage, wantStorage)
|
||||||
|
}) {
|
||||||
return fmt.Errorf("transient storage differs ,have\n%v\nwant\n%v",
|
return fmt.Errorf("transient storage differs ,have\n%v\nwant\n%v",
|
||||||
have.PrettyPrint(),
|
have.PrettyPrint(),
|
||||||
want.PrettyPrint())
|
want.PrettyPrint())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue