diff --git a/flow_commands.go b/flow_commands.go index 028eaea..a27995e 100644 --- a/flow_commands.go +++ b/flow_commands.go @@ -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()