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

@@ -68,7 +68,7 @@ func GenerateGenesisStateFromDepositData(
return nil, nil, errors.Wrap(err, "could not generate genesis state")
}
pbState, err := statenative.ProtobufBeaconStatePhase0(beaconState.InnerStateUnsafe())
pbState, err := statenative.ProtobufBeaconStatePhase0(beaconState.ToProtoUnsafe())
if err != nil {
return nil, nil, err
}