diff --git a/src/background/ergoApiHandlers.ts b/src/background/ergoApiHandlers.ts index 467b3304..145aa80c 100644 --- a/src/background/ergoApiHandlers.ts +++ b/src/background/ergoApiHandlers.ts @@ -65,15 +65,16 @@ export async function handleGetBoxesRequest( } } - console.log("target", target); - const boxes = await fetchBoxes(session.walletId); const selector = new BoxSelector(boxes.map((box) => new ErgoUnsignedInput(box))); postConnectorResponse( { isSuccess: true, - data: selector.select(target).map((box) => box.toObject("EIP-12")) + data: selector.select(target).map((box) => ({ + ...box.toObject("EIP-12"), + confirmed: boxes.find((x) => x.boxId === box.boxId)?.confirmed || false + })) }, request, port