Module ep_core::serde::serialize_array

source ·
Expand description

Serialization shim for arbitrary arrays that is consistent with polkadot-js’s implementation.

polkadot-js sends us a 0x01020304, but the default rust implementation for arrays expects a [0x01, 0x02, 0x03, 0x04]. Here, we use a similar serialization as substrate uses for vec, but we transform it to an array before returning.

Re-exports§

Functions§