json numbers are float64

This commit is contained in:
Michele Balistreri 2022-06-10 11:55:53 +02:00
parent c86dd29a2e
commit aafe062ad0

View File

@ -316,7 +316,7 @@ func (f *KeycardFlow) loadKeys(kc *keycardContext) error {
mnemonicLength = defMnemoLen
}
indexes, err := kc.generateMnemonic(mnemonicLength.(int) / 3)
indexes, err := kc.generateMnemonic(int(mnemonicLength.(float64)) / 3)
if isSCardError(err) {
return restartErr()