fix(wallet): fund the default mint on auto-refill (#77)

This commit is contained in:
Ashen
2026-08-18 20:39:40 +00:00
committed by GitHub
parent 2b60d64563
commit ec9d8e2d55
+2 -4
View File
@@ -94,11 +94,9 @@ export function startAutoRefillLoop(
`[auto-refill] Balance ${totalBalance} sats < threshold ${config.threshold}. Refilling ${config.amount} sats...`,
);
// Get active mint
const mints = await cocod.listMints();
const mintUrl = mints[0];
const mintUrl = await cocod.getDefaultMint();
if (!mintUrl) {
logger.error("[auto-refill] No active mint configured");
logger.error("[auto-refill] No default mint configured");
return;
}