fn pack_account_state<W: Write>(
    account_state: &AccountState<()>,
    codec: &mut Codec<W>
) -> Result<(), WriteError>