From 28dd709d5ad782f49d0a6a2b92a13026f48bbbd1 Mon Sep 17 00:00:00 2001 From: Adi Bhagavath Date: Mon, 1 Apr 2024 13:49:58 +0530 Subject: [PATCH] Fix: Packages/utils: Make the keytype as an optional parameter Signed-off-by: Adi Bhagavath --- packages/utils/src/Keys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/Keys.ts b/packages/utils/src/Keys.ts index fc6a7f9f..aa9ab143 100644 --- a/packages/utils/src/Keys.ts +++ b/packages/utils/src/Keys.ts @@ -35,7 +35,7 @@ function generateKeyAgreement(mnemonic: string, type: string) { * @param keytype - type of key to generate, supports 'ed25519' (default) and 'sr25519' for now * @returns An object with 4 keyring pairs. */ -export function generateKeypairs(mnemonic: string, keytype: string): ICordKeyPair { +export function generateKeypairs(mnemonic: string, keytype?: string): ICordKeyPair { if (!mnemonic) { mnemonic = mnemonicGenerate() }