Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Nov 12, 2024
1 parent 5159955 commit a5fb9a1
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

1 comment on commit a5fb9a1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 11793139366

Please sign in to comment.