Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only import getrandom when used #2187

Open
gjermundgaraba opened this issue Dec 17, 2024 · 0 comments
Open

Only import getrandom when used #2187

gjermundgaraba opened this issue Dec 17, 2024 · 0 comments

Comments

@gjermundgaraba
Copy link

We currently have a problem stemming from this library because getrandom is included even when it not necessary (I believe).

The core of the issue is that we have a CosmWasm (wasm based) smart contract where the wasm32-unknown-unknown environment does not allow randomness (it does not have access to JS) and fails to build because of the dependency of getrandom (coming from ring).

Our issue tracking this is here: cosmos/solidity-ibc-eureka#155

We got a comment suggesting this could be solved by avoiding the import under the conditions it is not used: cosmos/solidity-ibc-eureka#155 (comment)

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

No branches or pull requests

1 participant