You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let res:ValidatorsResponse = self.query(&request)?;
Ok(res.validators)
}
In many cases, a contract does not want all validators info, but just want a single validator info or some validators info. so changing query_validators query to receive the optional validator_addresses will make query_validators cost efficient.
The text was updated successfully, but these errors were encountered:
Currently Cosmwasm only has all validators query here
cosmwasm/packages/std/src/traits.rs
Lines 240 to 244 in 71d953c
In many cases, a contract does not want all validators info, but just want a single validator info or some validators info. so changing
query_validators
query to receive the optionalvalidator_addresses
will make query_validators cost efficient.The text was updated successfully, but these errors were encountered: