From 203c879b1ae105cc4ee3f454ae2ad460180f8b0b Mon Sep 17 00:00:00 2001 From: devchenyan Date: Tue, 12 Nov 2024 16:08:13 +0800 Subject: [PATCH] fix --- .ckb-light-version | 4 ---- .ckb-version | 4 ---- packages/neuron-ui/src/utils/scriptAndAddress.ts | 3 --- 3 files changed, 11 deletions(-) diff --git a/.ckb-light-version b/.ckb-light-version index d3237ae7d9..5aff472ddf 100644 --- a/.ckb-light-version +++ b/.ckb-light-version @@ -1,5 +1 @@ -<<<<<<< HEAD v0.4.1 -======= -v0.4.0 ->>>>>>> 9a82bc451 (feat: update ckb client versions) diff --git a/.ckb-version b/.ckb-version index 96c8cb193d..11c3166fe2 100644 --- a/.ckb-version +++ b/.ckb-version @@ -1,5 +1 @@ -<<<<<<< HEAD v0.120.0 -======= -v0.119.0 ->>>>>>> 9a82bc451 (feat: update ckb client versions) diff --git a/packages/neuron-ui/src/utils/scriptAndAddress.ts b/packages/neuron-ui/src/utils/scriptAndAddress.ts index 4a6d9034bc..dfc0965bcc 100644 --- a/packages/neuron-ui/src/utils/scriptAndAddress.ts +++ b/packages/neuron-ui/src/utils/scriptAndAddress.ts @@ -13,9 +13,6 @@ export const scriptToAddress = ( { isMainnet = true, deprecated = false }: { isMainnet?: boolean; deprecated?: boolean } ) => { const config = { config: isMainnet ? MAINNET : TESTNET } - if (['data1', 'data2'].includes(script.hashType)) { - return encodeToAddress(script, config) - } return deprecated ? generateAddress(script, config) : encodeToAddress(script, config) }