Skip to content

Commit

Permalink
Fix: Packages/utils: Make the keytype as an optional parameter (#198)
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Bhagavath <[email protected]>
  • Loading branch information
adi-a11y authored Apr 8, 2024
1 parent 0040114 commit 235a575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/Keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 235a575

Please sign in to comment.