import { numberToHex } from "https://deno.land/x/polkadot@0.2.37/util/number/index.ts";
Examples
import { numberToHex } from 'https://deno.land/x/polkadot@0.2.37/util/mod.ts';
numberToHex(0x1234); // => '0x1234'
numberToHex(0x1234, 32); // => 0x00001234