From b5dfe047ee815a3f74de6593b09aec128c0f01c8 Mon Sep 17 00:00:00 2001 From: SiddyJ Date: Sat, 10 Feb 2024 15:41:35 -0800 Subject: [PATCH] added unit tests --- merkle_util_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/merkle_util_test.go b/merkle_util_test.go index 75d7ccf3..ba364842 100644 --- a/merkle_util_test.go +++ b/merkle_util_test.go @@ -272,7 +272,7 @@ func TestUnmarshalSSZVersionedBeaconStateDeneb(t *testing.T) { } func TestUnmarshalSSZVersionedBeaconStateCapella(t *testing.T) { - capellaState := capella.BeaconState{} + var capellaState capella.BeaconState capellaStateJSON, err := ParseJSONFileCapella("data/goerli_slot_6409723.json") if err != nil { fmt.Println("error", err) @@ -317,7 +317,7 @@ func TestMarshalSSZVersionedBeaconStateDeneb(t *testing.T) { } func TestMarshalSSZVersionedBeaconStateCapella(t *testing.T) { - capellaState := capella.BeaconState{} + var capellaState capella.BeaconState capellaStateJSON, err := ParseJSONFileCapella("data/goerli_slot_6409723.json") if err != nil { fmt.Println("error", err)