From a5fb9a1f6e80046977e2606ab4bedd8bbbb2d13a Mon Sep 17 00:00:00 2001 From: devchenyan Date: Tue, 12 Nov 2024 16:08:13 +0800 Subject: [PATCH] fix --- packages/neuron-ui/src/utils/scriptAndAddress.ts | 3 --- 1 file changed, 3 deletions(-) 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) }