Skip to content

Commit 5991552

Browse files
committed
Fix mint.ts
1 parent c9e7f35 commit 5991552

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ const scriptHash = resolvePlutusScriptHash(poolAddress); // also the minting po
201201
```
202202

203203
Known derived values (preprod):
204-
- `poolAddress``addr_test1wq8lshhawfkay7fc68078h7hg36mgnqpfnn82a7y4g067cs78y0m9`
205-
- `scriptHash``0ff85efd726dd27938d1dfe3dfd74475b44c014ce67577c4aa1faf62`
204+
- `poolAddress``addr_test1wqkhsggq87fndzsll52yp6rm9aw6jw9hhpaenjzxag0xazq3wlxky`
205+
- `scriptHash``2d7821003f93368a1ffd1440e87b2f5da938b7b87b99c846ea1e6e88`
206206

207207
### Known preprod constants (`contract.ts`)
208208

frontend/src/tx/mint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export async function buildMintTx(
7171
// ── 1. Fetch UTxOs ────────────────────────────────────────────────────────
7272

7373
// Pool UTxO — the single UTxO locked at the script address.
74-
// May not exist on the very first mint; the validator handles that case on-chain.
75-
const poolUtxos: UTxO[] = await provider.fetchAddressUTxOs(poolAddress);
74+
// May not exist on the very first mint (Blockfrost returns 404 for unused addresses).
75+
const poolUtxos: UTxO[] = await provider.fetchAddressUTxOs(poolAddress).catch(() => []);
7676
const poolUtxo: UTxO | undefined = poolUtxos[0];
7777

7878
// Pyth State NFT UTxO — reference input carrying the oracle state.

0 commit comments

Comments
 (0)