From 235a575bdcd844eb5258bfb76c448b608333e09f Mon Sep 17 00:00:00 2001 From: Adi Date: Mon, 8 Apr 2024 11:41:57 +0530 Subject: [PATCH] Fix: Packages/utils: Make the keytype as an optional parameter (#198) 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() }