Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-07-17 23:34:43 +08:00
parent 501dd0535c
commit 9eed70f2c6

View file

@ -284,18 +284,6 @@ func compareSet[k comparable](a, b map[k][]byte) bool {
return true return true
} }
func compareList[k comparable](a, b []k) bool {
if len(a) != len(b) {
return false
}
for i := 0; i < len(a); i++ {
if a[i] != b[i] {
return false
}
}
return true
}
func compareStorages(a, b map[common.Address]map[common.Hash][]byte) bool { func compareStorages(a, b map[common.Address]map[common.Hash][]byte) bool {
if len(a) != len(b) { if len(a) != len(b) {
return false return false
@ -311,19 +299,3 @@ func compareStorages(a, b map[common.Address]map[common.Hash][]byte) bool {
} }
return true return true
} }
func compareStorageList(a, b map[common.Address][]common.Hash) bool {
if len(a) != len(b) {
return false
}
for h, la := range a {
lb, ok := b[h]
if !ok {
return false
}
if !compareList(la, lb) {
return false
}
}
return true
}