fn query_state(deps: Deps) -> Result<StateResponse, ContractError> {
    let state: State = state_read(deps.storage).load()?;
    Ok(StateResponse {
        poll_count: state.poll_count,
        total_share: state.total_share,
        total_deposit: state.total_deposit,
    })
}
/// query_state allows for the query of dynamic state values such as the poll count and how much has been deposited
query_state allows for the query of dynamic state values such as the poll count and how much has been deposited
query_state allows for the query of dynamic state values such as the poll count and how much has been deposited
fn query_state(deps: Deps) -> Result<StateResponse, ContractError> {
    let state: State = state_read(deps.storage).load()?;
    Ok(StateResponse {
        poll_count: state.poll_count,
        total_share: state.total_share,
        total_deposit: state.total_deposit,
    })
}
fn query_state ( deps : Deps ) -> Result < StateResponse , ContractError > { let state : State = state_read ( deps . storage ) . load ( ) ? ; Ok ( StateResponse { poll_count : state . poll_count , total_share : state . total_share , total_deposit : state . total_deposit , } ) }
query_state allows for the query of dynamic state values such as the poll count and how much has been deposited
query_state allows for the query of dynamic state values such as the poll count and how much has been deposited
deps
Deps
deps
Deps