You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got it, thanks for the report. I had been using the same serialization from the bridge-lib earlier, but only the dust amount was withdrawn, so I assumed this was the right way of doing things. This way I got the withdraw to work on devenv 😬
fyi, I heard you were asking about helper methods eg. for fetching balance. See the tests/ folder in the sbtc package. (They are not runnable as a whole test-suite right now, but more are a collection of runnable snippets helpful for the sbtc devenv flow)
What version of Stacks.js are you using?
Describe the bug
Calling
sbtcWithdrawHelper
results in a btc tx with 3 outputs where the second spends the total amount.How to reproduce
Follow the tutorial on https://stacks-network.github.io/sbtc-docs/withdrawal.html
and call
Expected behavior
Second output should be a dust value
as described in https://github.com/stacks-network/sbtc/blob/main/sbtc-core/src/operations/op_return/withdrawal_request.rs#L287C22-L287C43
The text was updated successfully, but these errors were encountered: