Skip to content

Commit

Permalink
chore: make code beauty by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
perfogic committed Oct 14, 2024
1 parent 27bc5eb commit 6c143ba
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 129 deletions.
6 changes: 3 additions & 3 deletions packages/lib-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ async function getDepositAddress(
const checkpointConfig = configResponse.data as CheckpointConfig;
const encodedDest = commitmentBytes(convertSdkDestToWasmDest(dest));
const depositScript = redeemScript(
sigset,
Buffer.from(encodedDest),
checkpointConfig.sigset_threshold
sigset, // thông tin signature sets ở checkpoint mới nhất
Buffer.from(encodedDest), // địa chỉ của user
checkpointConfig.sigset_threshold // 2 / 3
);
let wsh = btc.payments.p2wsh({
redeem: { output: depositScript },
Expand Down
Loading

0 comments on commit 6c143ba

Please sign in to comment.