Skip to content

Commit

Permalink
enhancement: defaulting derivePrivateKey to keyIndex of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Dec 4, 2024
1 parent 6c5d73a commit cffbec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/lib/keyDeriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function getKeyDeriver(chain: ChainDefinition) {
*/
async function derivePrivateKey(
chain: ChainDefinition,
keyIndex = 0,
keyIndex = 1, // default to first active key
): Promise<PrivateKey> {
const keyDeriver = await getKeyDeriver(chain);
const derived = await keyDeriver(keyIndex);
Expand Down

0 comments on commit cffbec4

Please sign in to comment.