Skip to content

Commit

Permalink
Add case for QueryExistingRegisteredOperatorPubKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
damiramirez committed Jan 22, 2025
1 parent fc2b46c commit 755148a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion chainio/clients/avsregistry/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func TestReaderMethods(t *testing.T) {
require.Equal(t, 1, len(operators))
})

t.Run("get operator stake in quoryms at current block", func(t *testing.T) {
t.Run("get operator stake in quorums at current block", func(t *testing.T) {
stakeMap, err := chainReader.GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock(&bind.CallOpts{}, operatorId)
require.NoError(t, err)
require.Equal(t, 1, len(stakeMap))
Expand All @@ -204,6 +204,19 @@ func TestReaderMethods(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, indices)
})

t.Run(
"query existing registered operator pub keys", func(t *testing.T) {
addresses, pubKeys, err := chainReader.QueryExistingRegisteredOperatorPubKeys(
context.Background(),
big.NewInt(0),
nil,
nil,
)
require.NoError(t, err)
require.Equal(t, 1, len(pubKeys))
require.Equal(t, 1, len(addresses))
})
})
}

Expand Down

0 comments on commit 755148a

Please sign in to comment.