import { compactToU8a } from "https://deno.land/x/polkadot@0.2.11/util/mod.ts";
Examples
import { compactToU8a } from 'https://deno.land/x/polkadot@0.2.11/util/mod.ts';
console.log(compactToU8a(511, 32)); // Uint8Array([0b11111101, 0b00000111])
import { compactToU8a } from "https://deno.land/x/polkadot@0.2.11/util/mod.ts";
import { compactToU8a } from 'https://deno.land/x/polkadot@0.2.11/util/mod.ts';
console.log(compactToU8a(511, 32)); // Uint8Array([0b11111101, 0b00000111])