From e6076a80862949a1b3cd7c00ec8f33ad0733a2a0 Mon Sep 17 00:00:00 2001 From: yuche Date: Tue, 25 Jun 2024 13:56:42 +0800 Subject: [PATCH] fix: `@nervosnetwork/ckb-sdk-utils` esm import --- packages/ckb/src/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/ckb/src/index.ts b/packages/ckb/src/index.ts index 349fd3e..1244499 100644 --- a/packages/ckb/src/index.ts +++ b/packages/ckb/src/index.ts @@ -21,15 +21,13 @@ import { append0x, remove0x, } from '@joyid/common' -import { - addressToScript, - blake160, - serializeScript, -} from '@nervosnetwork/ckb-sdk-utils' +import ckbUtils from '@nervosnetwork/ckb-sdk-utils' import { Aggregator } from './aggregator' export * from './verify' +const { addressToScript, blake160, serializeScript } = ckbUtils + const appendPrefix = (tokenKey?: string): string | undefined => { if (!tokenKey) { return tokenKey