Query the the state of an actor.
(
&self,
address: &Address,
height: FvmQueryHeight,
)
| 41 | |
| 42 | /// Query the the state of an actor. |
| 43 | async fn actor_state( |
| 44 | &self, |
| 45 | address: &Address, |
| 46 | height: FvmQueryHeight, |
| 47 | ) -> anyhow::Result<QueryResponse<Option<(ActorID, ActorState)>>> { |
| 48 | let res = self |
| 49 | .perform(FvmQuery::ActorState(*address), height) |
| 50 | .await |
| 51 | .context("actor state query failed")?; |
| 52 | let height = res.height; |
| 53 | let value = extract_actor_state(res)?; |
| 54 | Ok(QueryResponse { height, value }) |
| 55 | } |
| 56 | |
| 57 | /// Run a message in a read-only fashion. |
| 58 | async fn call( |
no test coverage detected