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

Function decode_fevm_invoke

fendermint/rpc/src/response.rs:43–46  ·  view source on GitHub ↗

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

(deliver_tx: &ExecTxResult)

Source from the content-addressed store, hash-verified

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>> {
44 let data = decode_data(&deliver_tx.data)?;
45 decode_fevm_return_data(data)
46}
47
48/// Parse what is in the `return_data` field, which is `RawBytes` containing IPLD encoded bytes, into the really raw content.
49pub 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