Skip to content

Commit

Permalink
fix: btc staking info (#5957)
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherstar authored Oct 9, 2024
1 parent 47d0ad6 commit 7089f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kit-bg/src/vaults/impls/btc/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default class VaultBtc extends VaultBase {
const { swapInfo, stakingInfo } = unsignedTx;
const { inputs, outputs, inputsToSign, psbtHex } = encodedTx;

if (psbtHex && Array.isArray(inputsToSign)) {
if (!swapInfo && !stakingInfo && psbtHex && Array.isArray(inputsToSign)) {
return this.buildDecodedPsbtTx(params);
}

Expand Down Expand Up @@ -264,6 +264,7 @@ export default class VaultBtc extends VaultBase {
action.assetTransfer.utxoFrom = utxoFrom;
action.assetTransfer.utxoTo = originalUtxoTo;
}
actions = [action];
} else if (nativeToken) {
actions = [
{
Expand Down

0 comments on commit 7089f48

Please sign in to comment.