Skip to content

Commit

Permalink
fix: mm snap UTXO sends/trades (#5475)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Oct 17, 2023
1 parent 9cf0648 commit a5b77c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Modals/Send/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export const handleSend = async ({

const senderAddress = await adapter.getAddress({
accountNumber: accountMetadata.bip44Params.accountNumber,
accountType: accountMetadata.accountType,
wallet,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const useTradeExecution = ({
if (accountType === undefined) throw Error('Missing UTXO account type')
const adapter = assertGetUtxoChainAdapter(stepSellAssetChainId)
const { xpub } = await adapter.getPublicKey(wallet, accountNumber, accountType)
const _senderAddress = await adapter.getAddress({ accountNumber, wallet })
const _senderAddress = await adapter.getAddress({ accountNumber, accountType, wallet })
const senderAddress =
stepSellAssetAssetId === bchAssetId
? _senderAddress.replace('bitcoincash:', '')
Expand Down

0 comments on commit a5b77c8

Please sign in to comment.