The tests work
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user