Function sui_types::sui_system_state::get_validator_from_table
source · pub fn get_validator_from_table<K>(
object_store: &dyn ObjectStore,
table_id: ObjectID,
key: &K
) -> Result<SuiValidatorSummary, SuiError>
Expand description
Given a system state type version, and the ID of the table, along with a key, retrieve the dynamic field as a Validator type. We need the version to determine which inner type to use for the Validator type. This is assuming that the validator is stored in the table as ValidatorWrapper type.