From b54f1f3e58d8584e1691bc8cfb2ffe65052a6674 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 22 Nov 2024 21:23:58 +0000 Subject: [PATCH] Fix deno --- test/deno.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/deno.ts b/test/deno.ts index d5d2a3e..84e325a 100644 --- a/test/deno.ts +++ b/test/deno.ts @@ -1,10 +1,10 @@ import { assertEquals, assertThrows } from 'https://deno.land/std@0.146.0/testing/asserts.ts'; -import { decode } from 'https://deno.land/std/encoding/hex.ts'; -import BASE58_VECTORS from './vectors/base58.json' assert { type: 'json' }; -import BASE58_XMR_VECTORS from './vectors/base58_xmr.json' assert { type: 'json' }; +import { decodeHex } from 'https://deno.land/std/encoding/hex.ts'; +import BASE58_VECTORS from './vectors/base58.json' with { type: 'json' }; +import BASE58_XMR_VECTORS from './vectors/base58_xmr.json' with { type: 'json' }; import { base58, base58xmr, utils } from '../mod.ts'; -const hexToArray = (hex: string) => decode(new TextEncoder().encode(hex)); +const hexToArray = (hex: string) => decodeHex(hex); Deno.test('deno: base58: vectors', () => { for (let i = 0; i < BASE58_VECTORS.length; i++) {