Skip to content

Commit

Permalink
fix for test
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm committed Aug 7, 2024
1 parent 3d514b5 commit 110d629
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions beacon-chain/execution/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 110d629

Please sign in to comment.