Skip to content

Commit

Permalink
Fix minimal test. Skip beacon state test
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 24, 2024
1 parent a0202ba commit b1d0c96
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion proto/eth/v2/generated.ssz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/prysm/v1alpha1/generated.ssz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/ssz_proto_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ minimal = {
"max_blobs_per_block.size": "6",
"max_blob_commitments.size": "16",
"kzg_commitment_inclusion_proof_depth.size": "9",
"max_withdrawal_requests_per_payload.size":"4",
"max_withdrawal_requests_per_payload.size":"2",
"max_deposit_receipts": "4",
"max_attesting_indices.size": "8192",
"max_committees_per_slot.size": "4",
Expand Down
6 changes: 4 additions & 2 deletions testing/spectest/shared/electra/ssz_static/ssz_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func RunSSZStaticTests(t *testing.T, config string) {

func customHtr(t *testing.T, htrs []common.HTR, object interface{}) []common.HTR {
// TODO: Replace BeaconStateDeneb with BeaconStateElectra below and uncomment the code

//_, ok := object.(*ethpb.BeaconStateDeneb)
//if !ok {
// return htrs
Expand All @@ -33,9 +32,12 @@ func customHtr(t *testing.T, htrs []common.HTR, object interface{}) []common.HTR

// UnmarshalledSSZ unmarshalls serialized input.
func UnmarshalledSSZ(t *testing.T, serializedBytes []byte, folderName string) (interface{}, error) {
// TODO: Remove this check once BeaconState custom HTR function is ready
if folderName == "BeaconState" {
t.Skip("BeaconState is not ready")
}
var obj interface{}
switch folderName {
// TODO: replace execution payload with execution payload electra below and uncomment the code
case "ExecutionPayload":
obj = &enginev1.ExecutionPayloadElectra{}
case "ExecutionPayloadHeader":
Expand Down

0 comments on commit b1d0c96

Please sign in to comment.