Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan authored and Keith-CY committed Dec 13, 2024
1 parent 3c471be commit 6590968
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/neuron-ui/src/utils/scriptAndAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 6590968

Please sign in to comment.