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

Method serialize

fendermint/rpc/src/message.rs:189–191  ·  view source on GitHub ↗

Convenience method to serialize a [`ChainMessage`] for inclusion in a Tendermint transaction.

(message: &ChainMessage)

Source from the content-addressed store, hash-verified

187
188 /// Convenience method to serialize a [`ChainMessage`] for inclusion in a Tendermint transaction.
189 pub fn serialize(message: &ChainMessage) -> anyhow::Result<Vec<u8>> {
190 Ok(fvm_ipld_encoding::to_vec(message)?)
191 }
192
193 /// Actor address.
194 pub fn address(&self) -> &Address {

Callers 3

new_secp256k1Method · 0.45
sequenceFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected