Skip to content

Commit 77ca99d

Browse files
Merge pull request #816 from Adamant-im/fix/keys-generating
fix: remove kly key
2 parents 7365dc7 + 8699b10 commit 77ca99d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/ExportKeysForm.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ import { useStore } from 'vuex'
112112
import { useI18n } from 'vue-i18n'
113113
import { mdiContentCopy, mdiDotsVertical, mdiEye, mdiEyeOff } from '@mdi/js'
114114
115+
115116
function getBtcKey(crypto, passphrase, asWif) {
116117
const keyPair = getBtcAccount(crypto, passphrase).keyPair
117118
const key = asWif ? keyPair.toWIF() : keyPair.privateKey.toString('hex')
@@ -123,7 +124,9 @@ function getBtcKey(crypto, passphrase, asWif) {
123124
}
124125
}
125126
126-
function getKlyKey(crypto, passphrase) {
127+
function getKlyKey(passphrase) {
128+
const crypto = 'KLY';
129+
127130
const keyPair = getKlyAccount(crypto, passphrase).keyPair
128131
const key = keyPair.secretKey.toString('hex')
129132
@@ -185,7 +188,7 @@ export default defineComponent({
185188
const dash = getBtcKey(Cryptos.DASH, passphrase.value, true)
186189
const doge = getBtcKey(Cryptos.DOGE, passphrase.value, true)
187190
188-
const kly = getKlyKey(Cryptos.KLY, passphrase.value)
191+
const kly = getKlyKey(passphrase.value)
189192
190193
keys.value = [bitcoin, eth, doge, dash, kly]
191194
}, 0)

0 commit comments

Comments
 (0)