Skip to content

Commit

Permalink
Remove extra bytesToHex (#110)
Browse files Browse the repository at this point in the history
* fix: remove extra bytesToHex

* fix: remove extra bytesToHex
  • Loading branch information
friedger authored Oct 25, 2023
1 parent 1313bf4 commit d3c3d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -965,13 +965,12 @@ export default function WithdrawForm() {
const signMessage = async (e) => {
e.preventDefault();
const message = bytesToHex(
const message =
sbtcWithdrawMessage({
network: TESTNET,
amountSats: satoshis,
bitcoinAddress: userData.profile.btcAddress.p2wpkh.testnet,
})
);
});
openSignatureRequestPopup({
message,
Expand Down
5 changes: 2 additions & 3 deletions src/withdrawal.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ export default function WithdrawForm() {

// First we need to sign a Stacks message to prove we own the sBTC
// The sbtc paclage can help us format this
const message = bytesToHex(
const message =
sbtcWithdrawMessage({
network: TESTNET,
amountSats: satoshis,
bitcoinAddress: userData.profile.btcAddress.p2wpkh.testnet,
})
);
});

// Now we can use Leather to sign that message
openSignatureRequestPopup({
Expand Down

0 comments on commit d3c3d67

Please sign in to comment.