]> git.codecow.com Git - libnemo.git/commitdiff
Clean up temp wallet used to verify Ledger secrets.
authorChris Duncan <chris@zoso.dev>
Tue, 23 Sep 2025 14:16:07 +0000 (07:16 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 23 Sep 2025 14:16:07 +0000 (07:16 -0700)
src/lib/ledger.ts

index d783a47df13383c4282c0e700bd95b70c8b039df..2de4ffc27d3d0ad3cfa5abaad95a7f37c45cc9e0 100644 (file)
@@ -326,6 +326,7 @@ export class Ledger {
                        .sign(testWallet, 0)
                const testSignature = testSendBlock.signature
                try {
+                       await testWallet.destroy()
                        const ledgerSignature = await this.sign(0, testSendBlock, testOpenBlock)
                        return ledgerSignature === testSignature
                } catch (err) {