MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / decode_fevm_create

Function decode_fevm_create

fendermint/rpc/src/response.rs:36–40  ·  view source on GitHub ↗

Parse what Tendermint returns in the `data` field of [`DeliverTx`] as [`CreateReturn`].

(deliver_tx: &ExecTxResult)

Source from the content-addressed store, hash-verified

34
35/// Parse what Tendermint returns in the `data` field of [`DeliverTx`] as [`CreateReturn`].
36pub 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.
43pub fn decode_fevm_invoke(deliver_tx: &ExecTxResult) -> anyhow::Result<Vec<u8>> {

Callers 1

maybe_contract_addressFunction · 0.85

Calls 1

decode_dataFunction · 0.85

Tested by

no test coverage detected