MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / decode_fevm_invoke

Function decode_fevm_invoke

fendermint/rpc/src/response.rs:45–48  ·  view source on GitHub ↗

Parse what Tendermint returns in the `data` field of [`DeliverTx`] as raw ABI return value.

(deliver_tx: &DeliverTx)

Source from the content-addressed store, hash-verified

43
44/// Parse what Tendermint returns in the `data` field of [`DeliverTx`] as raw ABI return value.
45pub fn decode_fevm_invoke(deliver_tx: &DeliverTx) -> anyhow::Result<Vec<u8>> {
46 let data = decode_data(&deliver_tx.data)?;
47 decode_fevm_return_data(data)
48}
49
50/// Parse what is in the `return_data` field, which is `RawBytes` containing IPLD encoded bytes, into the really raw content.
51pub fn decode_fevm_return_data(data: RawBytes) -> anyhow::Result<Vec<u8>> {

Callers 3

callFunction · 0.85
fevm_callMethod · 0.85

Calls 2

decode_dataFunction · 0.85
decode_fevm_return_dataFunction · 0.85

Tested by 1