Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Type Error in a Flutter Application context when generating new KeyPair #4

Closed
eddywm opened this issue Jun 9, 2018 · 1 comment
Closed

Comments

@eddywm
Copy link
Contributor

eddywm commented Jun 9, 2018

I have been experimenting with the library outside of a Flutter app in a pure Dart command line application, everything seemed to work and then when I tried to move the code into a Flutter app it's bringing this weird type error when trying to generate a KeyPair by invoking Credentials.generateNew().

type 'AsymmetricKeyPair<PublicKey, PrivateKey>' is not a subtype of type 'AsymmetricKeyPair<ECPublicKey, ECPrivateKey>

package:web3dart/src/utils/keys.dart 45:63         generateNewPrivateKey
package:web3dart/src/utils/credentials.dart 44:27  Credentials.generateNew

My assumption is it might be crashing with some internals types with the same naming.

@simolus3
Copy link
Owner

Thanks for the report, this should now be fixed on master (version has not yet been published to pub).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants