feat: Add transfer finalize

This commit is contained in:
2025-01-30 22:31:17 +11:00
parent ba7a73d1a9
commit cd362f805b
2 changed files with 50 additions and 11 deletions

View File

@@ -276,11 +276,6 @@ async function transferLock(name) {
async function finalizeLock(name) {
const {db, context} = await setupCLI();
await confirm(
`Your transfer of ${name} to the locking script will be finalized. ` +
'This can be undone, but requires additional on-chain transactions. Do you wish to continue?',
);
const nameState = await db.getOutboundNameState(name);
if (nameState === null) {
die(`Name ${name} not found.`);
@@ -318,10 +313,6 @@ async function finalizeLock(name) {
}
async function transferLockCancel(name) {
await confirm(
`Your transfer of ${name} to the locking script will be cancelled. You will need to finalize this ` +
'transfer to regain ownership of the name. Do you wish to continue?',
);
const {db, context} = await setupCLI();