Skip to content

Commit

Permalink
feat: upgrade bitcoinjs-lib via hdwallet (#8197)
Browse files Browse the repository at this point in the history
Co-authored-by: woody <[email protected]>
  • Loading branch information
kaladinlight and woodenfurniture authored Nov 27, 2024
1 parent ef3dbcc commit e06ac79
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 94 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@
"@shapeshiftoss/caip": "workspace:^",
"@shapeshiftoss/chain-adapters": "workspace:^",
"@shapeshiftoss/errors": "workspace:^",
"@shapeshiftoss/hdwallet-coinbase": "1.55.12",
"@shapeshiftoss/hdwallet-core": "1.55.12",
"@shapeshiftoss/hdwallet-keepkey": "1.55.12",
"@shapeshiftoss/hdwallet-keepkey-webusb": "1.55.12",
"@shapeshiftoss/hdwallet-keplr": "1.55.12",
"@shapeshiftoss/hdwallet-ledger": "1.55.12",
"@shapeshiftoss/hdwallet-ledger-webusb": "1.55.12",
"@shapeshiftoss/hdwallet-metamask-multichain": "1.55.12",
"@shapeshiftoss/hdwallet-native": "1.55.12",
"@shapeshiftoss/hdwallet-native-vault": "1.55.12",
"@shapeshiftoss/hdwallet-phantom": "1.55.12",
"@shapeshiftoss/hdwallet-walletconnectv2": "1.55.12",
"@shapeshiftoss/hdwallet-coinbase": "1.56.0",
"@shapeshiftoss/hdwallet-core": "1.56.0",
"@shapeshiftoss/hdwallet-keepkey": "1.56.0",
"@shapeshiftoss/hdwallet-keepkey-webusb": "1.56.0",
"@shapeshiftoss/hdwallet-keplr": "1.56.0",
"@shapeshiftoss/hdwallet-ledger": "1.56.0",
"@shapeshiftoss/hdwallet-ledger-webusb": "1.56.0",
"@shapeshiftoss/hdwallet-metamask-multichain": "1.56.0",
"@shapeshiftoss/hdwallet-native": "1.56.0",
"@shapeshiftoss/hdwallet-native-vault": "1.56.0",
"@shapeshiftoss/hdwallet-phantom": "1.56.0",
"@shapeshiftoss/hdwallet-walletconnectv2": "1.56.0",
"@shapeshiftoss/swapper": "workspace:^",
"@shapeshiftoss/types": "workspace:^",
"@shapeshiftoss/unchained-client": "workspace:^",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/address/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ type ValidateAddressReturn = boolean
export type ValidateAddressByChainId = (args: ValidateAddressArgs) => Promise<ValidateAddressReturn>

export const validateAddress: ValidateAddressByChainId = async ({ chainId, maybeAddress }) => {
// Invalidate taproot addresses for BTC
if (chainId === btcChainId && maybeAddress.startsWith('bc1p')) return false
try {
const adapter = getChainAdapterManager().get(chainId)
if (!adapter) return false
Expand Down
Loading

0 comments on commit e06ac79

Please sign in to comment.