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

Function decode_bytes

fendermint/rpc/src/response.rs:33–35  ·  view source on GitHub ↗

Parse what Tendermint returns in the `data` field of [`DeliverTx`] as raw bytes. Only call this after the `code` of both [`DeliverTx`] and [`CheckTx`] have been inspected!

(deliver_tx: &DeliverTx)

Source from the content-addressed store, hash-verified

31///
32/// Only call this after the `code` of both [`DeliverTx`] and [`CheckTx`] have been inspected!
33pub fn decode_bytes(deliver_tx: &DeliverTx) -> anyhow::Result<RawBytes> {
34 decode_data(&deliver_tx.data)
35}
36
37/// Parse what Tendermint returns in the `data` field of [`DeliverTx`] as [`CreateReturn`].
38pub fn decode_fevm_create(deliver_tx: &DeliverTx) -> anyhow::Result<CreateReturn> {

Callers 1

read_evm_actorMethod · 0.85

Calls 1

decode_dataFunction · 0.85

Tested by

no test coverage detected