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

Function decode_bytes

fendermint/rpc/src/response.rs:31–33  ·  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: &ExecTxResult)

Source from the content-addressed store, hash-verified

29///
30/// Only call this after the `code` of both [`DeliverTx`] and [`CheckTx`] have been inspected!
31pub fn decode_bytes(deliver_tx: &ExecTxResult) -> anyhow::Result<RawBytes> {
32 decode_data(&deliver_tx.data)
33}
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> {

Callers 1

read_evm_actorMethod · 0.85

Calls 1

decode_dataFunction · 0.85

Tested by

no test coverage detected