Closed andreibancioiu closed 9 months ago
For example, currently, there is no validation error when trying to do the following (incorrect usage):
mxpy wallet convert --infile=keystoreWithKindMnemonic.json --in-format=keystore-secret-key ...
Most probably, the change (or at least a part of it) should be implemented in sdk-wallet - we have to guard that the kind field is indeed missing here:
sdk-wallet
kind
https://github.com/multiversx/mx-sdk-py-wallet/blob/main/multiversx_sdk_wallet/user_wallet.py#L57
The change has been implemented in py-wallet in this PR. If the file contains the kind field, an extra check is made to make sure the type matches.
py-wallet
For example, currently, there is no validation error when trying to do the following (incorrect usage):
Most probably, the change (or at least a part of it) should be implemented in
sdk-wallet
- we have to guard that thekind
field is indeed missing here:https://github.com/multiversx/mx-sdk-py-wallet/blob/main/multiversx_sdk_wallet/user_wallet.py#L57