Constant TRIE_ID_LEN

Source
pub const TRIE_ID_LEN: usize = 32;
Expand description

Exact length of a pallet-contracts trie_id.

ContractInfo::new derives it from blake2_256, so every trie id is 32 bytes even though the type allows up to 128. Verified against all 305 Astar and 923 Shiden ContractInfoOf entries. Enforcing it turns a mis-parse (e.g. an upstream field reordering) into a loud, logged skip rather than a silent wrong-offset deletion.