Module

x/polkadot/util/bundle.ts>u8aToU8a

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

Examples

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

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

Parameters

optional
value: U8aLike | null

Returns

Uint8Array
import u8aToU8a
import { u8aToU8a } from "https://dotland.deno.dev/x/polkadot@0.2.35/util/bundle.ts";