Skip to content

Commit

Permalink
Merge branch 'release-candidate' of https://github.com/keepkey/keepke…
Browse files Browse the repository at this point in the history
…y-desktop into develop
  • Loading branch information
BitHighlander committed Feb 5, 2023
2 parents 12db61f + 39a655c commit 9ba1a4d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 11 additions & 0 deletions packages/keepkey-desktop-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,17 @@ export const App = () => {

async modalPin(pinRequestType2: PinMatrixRequestType2): Promise<string> {
const pinRequestType: PinMatrixRequestType = mapPinRequestType(pinRequestType2)
if (window.localStorage.getItem('onboarded') !== 'true') {
await new Promise(resolve => {
const interval = setInterval(() => {
if (window.localStorage.getItem('onboarded') === 'true') {
resolve(true)
clearInterval(interval)
}
}, 500)
})
hardwareError.close()
}
const out = deferred<string>()
dispatch({
type: WalletActions.OPEN_KEEPKEY_PIN,
Expand Down
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.20",
"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 9ba1a4d

Please sign in to comment.