Skip to content

Commit

Permalink
Use registry endpoint to determine operator counts
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Feb 12, 2024
1 parent 9d40ae5 commit 758af9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/CosmosDirectory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function CosmosDirectory(testnet){
}

function getOperatorAddresses(){
return axios.get(validatorsUrl)
return axios.get(validatorsUrl + '/registry')
.then(res => res.data)
.then(data => Array.isArray(data) ? data : data.validators) // deprecate
.then(data => data.reduce((sum, validator) => {
Expand Down Expand Up @@ -74,4 +74,4 @@ function CosmosDirectory(testnet){
}
}

export default CosmosDirectory
export default CosmosDirectory

0 comments on commit 758af9f

Please sign in to comment.