Module

x/polkadot/mod.ts>util.u8aToU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function util.u8aToU8a
import { util } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts";
const { u8aToU8a } = util;

Examples

import { u8aToU8a } from 'https://deno.land/x/polkadot@0.2.38/util/mod.ts';

u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])
u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])

Parameters

optional
value: U8aLike | null

Returns

Uint8Array
import util.u8aToU8a
import { util } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts";
const { u8aToU8a } = util;