]> git.codecow.com Git - libnemo.git/commitdiff
Formatting.
authorChris Duncan <chris@zoso.dev>
Thu, 17 Jul 2025 15:22:16 +0000 (08:22 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 17 Jul 2025 15:22:16 +0000 (08:22 -0700)
src/lib/account.ts
src/lib/wallets/wallet.ts

index 39c946f70f08efa3c01ed76b4b8a948f84e55bdc..6fa9f442376700aae9c18366acc3be79a6bfb494 100644 (file)
@@ -265,8 +265,8 @@ export class Account {
                const accounts = await this.#fromPublicKeys(Object.keys(keypairs))\r
                try {\r
                        const headers = {\r
-                               store: 'Account',\r
                                method: 'set',\r
+                               store: 'Account',\r
                                password: password.buffer\r
                        }\r
                        const isLocked = await SafeWorker.add(headers, keypairs)\r
@@ -365,8 +365,8 @@ export class Account {
                try {\r
                        const headers = {\r
                                method: 'get',\r
-                               store: 'Account',\r
                                name: this.publicKey,\r
+                               store: 'Account',\r
                                password: password.buffer\r
                        }\r
                        const response = await SafeWorker.add(headers)\r
index 46842cb93866047e5c178c904f7c3fa045319d13..6878700d56866271ecc5a66fb1a5de754eb5afb3 100644 (file)
@@ -160,8 +160,8 @@ export abstract class Wallet {
                        })\r
                        const encoded = utf8.toBytes(serialized)\r
                        const headers = {\r
-                               store: 'Wallet',\r
                                method: 'set',\r
+                               store: 'Wallet',\r
                                password: new Uint8Array(password).buffer\r
                        }\r
                        const data: Data = {\r
@@ -224,9 +224,9 @@ export abstract class Wallet {
                }\r
                try {\r
                        const headers = {\r
-                               store: 'Wallet',\r
                                method: 'get',\r
                                name: this.id,\r
+                               store: 'Wallet',\r
                                password: new Uint8Array(password).buffer\r
                        }\r
                        const response = await SafeWorker.add(headers)\r