Skip to content

Commit

Permalink
fix fetcher test
Browse files Browse the repository at this point in the history
  • Loading branch information
xenowits committed Oct 23, 2023
1 parent b1d20c3 commit 60465c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/fetcher/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,19 @@ func TestFetchBlocks(t *testing.T) {
require.Equal(t, duty, resDuty)
require.Len(t, resDataSet, 2)

dutyDataA := resDataSet[pubkeysByIdx[vIdxA]].(*core.VersionedProposal)
dutyDataA := resDataSet[pubkeysByIdx[vIdxA]].(core.VersionedProposal)
slotA, err := dutyDataA.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotA)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataA.Capella.Body.ExecutionPayload.FeeRecipient))
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxA]].Signatures()[0].ToETH2(), *dutyDataA)
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxA]].Signatures()[0].ToETH2(), dutyDataA)

dutyDataB := resDataSet[pubkeysByIdx[vIdxB]].(*core.VersionedProposal) // TODO(xenowits): Figure out why cast needs pointer
dutyDataB := resDataSet[pubkeysByIdx[vIdxB]].(core.VersionedProposal)
slotB, err := dutyDataB.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotB)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataB.Capella.Body.ExecutionPayload.FeeRecipient))
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxB]].Signatures()[0].ToETH2(), *dutyDataB)
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxB]].Signatures()[0].ToETH2(), dutyDataB)

return nil
})
Expand Down

0 comments on commit 60465c3

Please sign in to comment.