The tests work

This commit is contained in:
2026-09-07 10:56:08 +00:00
parent f01f9bc56b
commit b7bedc5476
19 changed files with 1855 additions and 1559 deletions
+5 -5
View File
@@ -227,13 +227,13 @@ export const handleResourceCommand = async (
}
// Unreserve the resources
await deps.app.engine.unreserveResources(
[{ outpointTransactionHash: hexToBin(txHash), outpointIndex: vout }],
target.reservedBy,
);
await deps.app.engine.archiveInvitation(target.reservedBy);
// TODO: This should ideally not archive the invitation, but instead just release the resource so the user can add a different resource to the same invitation.
// Maybe make this method only available on invitations that haven't been synced yet? That way the user has some time to undo it without scrapping the whole invitation,
// but is still safe from the other participants from spending the resource?
deps.io.out(
`Unreserved ${bold(`${txHash}:${vout}`)} (was reserved for ${target.reservedBy})`,
`Archived invitation ${bold(target.reservedBy)} and released its resources`,
);
// TODO: What do I want to return here?