Run a message in a read-only fashion.
(
&self,
message: Message,
height: FvmQueryHeight,
)
| 56 | |
| 57 | /// Run a message in a read-only fashion. |
| 58 | async fn call( |
| 59 | &self, |
| 60 | message: Message, |
| 61 | height: FvmQueryHeight, |
| 62 | ) -> anyhow::Result<QueryResponse<ExecTxResult>> { |
| 63 | let res = self |
| 64 | .perform(FvmQuery::Call(Box::new(message)), height) |
| 65 | .await |
| 66 | .context("call query failed")?; |
| 67 | let height = res.height; |
| 68 | let value = extract(res, parse_exec_tx_result)?; |
| 69 | Ok(QueryResponse { height, value }) |
| 70 | } |
| 71 | |
| 72 | /// Estimate the gas limit of a message. |
| 73 | async fn estimate_gas( |