(
&mut self,
address: Address,
params: GetParams,
value: TokenAmount,
gas_params: GasParams,
height: FvmQueryHeight,
)
| 140 | /// Get an object in a bucket without including a transaction on the blockchain. |
| 141 | #[cfg(feature = "ipc-storage")] |
| 142 | async fn os_get_call( |
| 143 | &mut self, |
| 144 | address: Address, |
| 145 | params: GetParams, |
| 146 | value: TokenAmount, |
| 147 | gas_params: GasParams, |
| 148 | height: FvmQueryHeight, |
| 149 | ) -> anyhow::Result<Option<Object>> { |
| 150 | let msg = MessageFactory::new(system::SYSTEM_ACTOR_ADDR, 0) |
| 151 | .os_get(address, params, value, gas_params)?; |
| 152 | |
| 153 | let response = self.call(msg, height).await?; |
| 154 | if response.value.code.is_err() { |
| 155 | return Err(anyhow!("{}", response.value.info)); |
| 156 | } |
| 157 | |
| 158 | let return_data = decode_os_get(&response.value) |
| 159 | .context("error decoding data from deliver_tx in call")?; |
| 160 | |
| 161 | Ok(return_data) |
| 162 | } |
| 163 | |
| 164 | /// Get a blob from the blobs actor without including a transaction on the blockchain. |
| 165 | #[cfg(feature = "ipc-storage")] |
no test coverage detected