Skip to content

Commit

Permalink
chore: minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
reinamora137 committed Apr 24, 2024
1 parent c9c06b9 commit 66c9e3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/utils/minting/olga/mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async function generatePSBT(
// console.log(`Total Dust Value: ${totalDustValue} satoshis`);

const psbtData = {
psbt: psbt, // Your PSBT object
psbt: psbt,
feePerKb: fee_per_kb,
estimatedTxSize: estimatedSize,
totalInputValue: totalInputValue,
Expand Down
8 changes: 5 additions & 3 deletions routes/api/v2/block/[block_index].ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
ErrorResponseBody,
} from "globals";


/**
* @swagger
* /api/v2/block/{block_index}:
Expand Down Expand Up @@ -43,7 +42,8 @@ export const handler = async (
if (!isIntOr32ByteHex(block_index_or_hash)) {
return new Response(
JSON.stringify({
error: "Invalid argument provided. Must be an integer or 32 byte hex string.",
error:
"Invalid argument provided. Must be an integer or 32 byte hex string.",
}),
{
status: 400, // Bad Request
Expand All @@ -55,7 +55,9 @@ export const handler = async (
}

try {
const response: BlockInfoResponseBody = await api_get_block(block_index_or_hash);
const response: BlockInfoResponseBody = await api_get_block(
block_index_or_hash,
);
const body = JSON.stringify(response);
return new Response(body);
} catch {
Expand Down

0 comments on commit 66c9e3c

Please sign in to comment.