solana-ed25519-secp256k1-sig-verification
solana-ed25519-secp256k1-sig-verification copied to clipboard
Error with compilling on "anchor test"
Hi there, I'm trying to run and test the project but on "anchor test" receive to following error:
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
--> src/lib.rs:267:9
|
267 | / compile_error!("\
268 | | target is not supported, for more information see: \
269 | | https://docs.rs/getrandom/#unsupported-targets\
270 | | ");
| |__________^
error[E0433]: failed to resolve: use of undeclared crate or module `imp`
--> src/lib.rs:291:5
|
291 | imp::getrandom_inner(dest)
| ^^^ use of undeclared crate or module `imp`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Steps to reproduce:
- clone repository
- yarn install
- anchor test
Versions Yarn: 1.22.19 Anchor: tried on 0.21.0 and 0.29.0 Node: v16.20.2
Environment: WSL Ubuntu-20.04