From 110d629faa269e3d22c0880c671f1893076af258 Mon Sep 17 00:00:00 2001 From: james-prysm Date: Wed, 7 Aug 2024 09:28:44 -0500 Subject: [PATCH] fix for test --- beacon-chain/execution/mock_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/beacon-chain/execution/mock_test.go b/beacon-chain/execution/mock_test.go index a77c83ecc446..ca19778afaac 100644 --- a/beacon-chain/execution/mock_test.go +++ b/beacon-chain/execution/mock_test.go @@ -84,11 +84,15 @@ func (s *mockEngine) callCount(method string) int { } func mockParseUintList(t *testing.T, data json.RawMessage) []uint64 { - var list []uint64 + var list []string if err := json.Unmarshal(data, &list); err != nil { t.Fatalf("failed to parse uint list: %v", err) } - return list + uints := make([]uint64, len(list)) + for i, u := range list { + uints[i] = hexutil.MustDecodeUint64(u) + } + return uints } func mockParseHexByteList(t *testing.T, data json.RawMessage) []hexutil.Bytes {