Skip to content

Commit

Permalink
fix BCH
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Feb 5, 2023
1 parent fec03d0 commit 39a655c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/keepkey-desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keepkey-desktop",
"version": "2.0.25",
"version": "2.0.26",
"author": {
"name": "KeepKey",
"email": "[email protected]"
Expand Down
7 changes: 6 additions & 1 deletion packages/keepkey-sdk-server/src/controllers/utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export class UtxoController extends ApiController {
if (body.vaultAddress) input.vaultAddress = body.vaultAddress
if (body.opReturnData) input.opReturnData = body.opReturnData

console.log('*** input: ', JSON.stringify(input))
for (let i = 0; i < input.outputs.length; i++) {
let output = input.outputs[i]
if (output.address && !output.address.startsWith('bitcoincash:')) {
output.address = 'bitcoincash:' + output.address
}
}

return await this.context.wallet.btcSignTx(input)
}
Expand Down

0 comments on commit 39a655c

Please sign in to comment.