onflow / freshmint

Apache License 2.0
68 stars 17 forks source link

Fix an error with node18 #178

Open DarkSorrow opened 1 year ago

DarkSorrow commented 1 year ago

While working on the hackathon for flow I had the following error while importing the package /node_modules/@freshmint/core/crypto/elliptic.ts:7 2023-02-23 11:33:06 const ECDSA_P256 = new elliptic.ec('p256');

Changeing the way the package is imported resolved the issue which seems to be due to the fact that this package export his class as default already and using the * induce an error from the nodejs imports