Resolve remaining native state tasks (#11561)

* remove ToProto and ToProtoUnsafe wrappers

* TestAppendBeyondIndicesLimit

* change type of genesisValidatorsRoot

* fuzz tests

* check type assertion
This commit is contained in:
Radosław Kapka
2022-10-19 09:37:45 -05:00
committed by GitHub
parent 2ae9f1be9e
commit b7a878d011
65 changed files with 2426 additions and 286 deletions

View File

@@ -197,8 +197,8 @@ func main() {
if err := dataFetcher(expectedPostStatePath, expectedState); err != nil {
log.Fatal(err)
}
if !equality.DeepEqual(expectedState, postState.InnerStateUnsafe()) {
diff, _ := messagediff.PrettyDiff(expectedState, postState.InnerStateUnsafe())
if !equality.DeepEqual(expectedState, postState.ToProtoUnsafe()) {
diff, _ := messagediff.PrettyDiff(expectedState, postState.ToProtoUnsafe())
log.Errorf("Derived state differs from provided post state: %s", diff)
}
}