Open U00A3 opened 9 months ago
You can specify a different stx address, not a different bitcoin address.
When signing, you account in Leather wallets must be the same account as the one you used to log in to the sbtc bridge. Otherwise, you get this nice little message from Leather wallet:
@U00A3 - thanks for posting..
The quick answer is that the error Unable to sign PSBT at index...
usually means the wallet is connected to a different account to the app.
Try changing the the wallet account and retrying the UI.
The longer answer is that it depends what you mean by account.
For deposits you can
a) change the stacks address and have your sBTC minted to any stacks principal - including contract principals
b) change the bitcoin address - say you wish to deposit from an Electrum wallet. You can change the btc address to your electrum wallet and click continue. The next screen will have a button to show the PSBT allowing you to copy paste it into Electrum. From there you can sign and broadcast.
For Withdrawals you can;
a) change the btc address to withdraw the funds to - it defaults to you current Leather/Xverse payment address but its up to you.
you can't change the stacks address for withdrawals as you need to validate that you control the stacks address by signing a message.
We could still probably improve the UX here anyway.
keeping this open for now as the functionality to test depositing form the bridge into a contract is yet to be tested.
When I try to withdraw BTC to another account, the app ignores the address I entered. The sign Message contains the address connected to the sBTC bridge. When I confirm the transaction, nothing happens.
I'll do more tests tomorrow :)
It seems that depositing or withdrawing to a different account is impossible or I'm doing something wrong :)