Parse what Tendermint returns in the `data` field of [`DeliverTx`] as [`CreateReturn`].
(deliver_tx: &ExecTxResult)
| 34 | |
| 35 | /// Parse what Tendermint returns in the `data` field of [`DeliverTx`] as [`CreateReturn`]. |
| 36 | pub fn decode_fevm_create(deliver_tx: &ExecTxResult) -> anyhow::Result<CreateReturn> { |
| 37 | let data = decode_data(&deliver_tx.data)?; |
| 38 | fvm_ipld_encoding::from_slice::<eam::CreateReturn>(&data) |
| 39 | .map_err(|e| anyhow!("error parsing as CreateReturn: {e}")) |
| 40 | } |
| 41 | |
| 42 | /// Parse what Tendermint returns in the `data` field of [`DeliverTx`] as raw ABI return value. |
| 43 | pub fn decode_fevm_invoke(deliver_tx: &ExecTxResult) -> anyhow::Result<Vec<u8>> { |
no test coverage detected