From cffbec45c93cfff4d187611db4d1976c5a840789 Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 4 Dec 2024 15:51:55 -0800 Subject: [PATCH] enhancement: defaulting derivePrivateKey to keyIndex of 1 --- packages/snap/snap.manifest.json | 2 +- packages/snap/src/lib/keyDeriver.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index ddf9b2c..c051108 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/@greymass/antelope-snap.git" }, "source": { - "shasum": "gKttLpFlKYDlf3Ku/yslLX7Rwbx1ZmaIC/rpTSwUN6Y=", + "shasum": "gkQdo0O5c0vZ+RngXgbSw/dXXk1LLlkjwFfYnL/TazU=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/lib/keyDeriver.ts b/packages/snap/src/lib/keyDeriver.ts index c298cff..999a176 100644 --- a/packages/snap/src/lib/keyDeriver.ts +++ b/packages/snap/src/lib/keyDeriver.ts @@ -30,7 +30,7 @@ async function getKeyDeriver(chain: ChainDefinition) { */ async function derivePrivateKey( chain: ChainDefinition, - keyIndex = 0, + keyIndex = 1, // default to first active key ): Promise { const keyDeriver = await getKeyDeriver(chain); const derived = await keyDeriver(keyIndex);