@@ -112,6 +112,7 @@ import { useStore } from 'vuex'
112
112
import { useI18n } from ' vue-i18n'
113
113
import { mdiContentCopy , mdiDotsVertical , mdiEye , mdiEyeOff } from ' @mdi/js'
114
114
115
+
115
116
function getBtcKey (crypto , passphrase , asWif ) {
116
117
const keyPair = getBtcAccount (crypto, passphrase).keyPair
117
118
const key = asWif ? keyPair .toWIF () : keyPair .privateKey .toString (' hex' )
@@ -123,7 +124,9 @@ function getBtcKey(crypto, passphrase, asWif) {
123
124
}
124
125
}
125
126
126
- function getKlyKey (crypto , passphrase ) {
127
+ function getKlyKey (passphrase ) {
128
+ const crypto = ' KLY' ;
129
+
127
130
const keyPair = getKlyAccount (crypto, passphrase).keyPair
128
131
const key = keyPair .secretKey .toString (' hex' )
129
132
@@ -185,7 +188,7 @@ export default defineComponent({
185
188
const dash = getBtcKey (Cryptos .DASH , passphrase .value , true )
186
189
const doge = getBtcKey (Cryptos .DOGE , passphrase .value , true )
187
190
188
- const kly = getKlyKey (Cryptos . KLY , passphrase .value )
191
+ const kly = getKlyKey (passphrase .value )
189
192
190
193
keys .value = [bitcoin, eth, doge, dash, kly]
191
194
}, 0 )
0 commit comments