Query the the state of an actor.
(
&self,
address: &Address,
height: FvmQueryHeight,
)
| 51 | |
| 52 | /// Query the the state of an actor. |
| 53 | async fn actor_state( |
| 54 | &self, |
| 55 | address: &Address, |
| 56 | height: FvmQueryHeight, |
| 57 | ) -> anyhow::Result<QueryResponse<Option<(ActorID, ActorState)>>> { |
| 58 | let res = self |
| 59 | .perform(FvmQuery::ActorState(*address), height) |
| 60 | .await |
| 61 | .context("actor state query failed")?; |
| 62 | let height = res.height; |
| 63 | let value = extract_actor_state(res)?; |
| 64 | Ok(QueryResponse { height, value }) |
| 65 | } |
| 66 | |
| 67 | /// Run a message in a read-only fashion. |
| 68 | async fn call( |
no test coverage detected