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

Getting warnings while starting the hedera-wallet-snap #263

Open
kpachhai opened this issue Mar 27, 2024 · 0 comments
Open

Getting warnings while starting the hedera-wallet-snap #263

kpachhai opened this issue Mar 27, 2024 · 0 comments
Assignees
Labels
Bug An error that causes the feature to behave differently than what was expected based on design.

Comments

@kpachhai
Copy link
Contributor

Description

Getting warnings while starting the hedera-wallet-snap

Steps to reproduce

  1. yarn start

Additional context

➤ YN0000: [@hashgraph/hedera-wallet-snap]: ℹ Snap bundle evaluated successfully.
➤ YN0000: [@hashgraph/hedera-wallet-snap]: ⚠ Compiled 764 files in 14648ms with 2 warnings.
➤ YN0000: [@hashgraph/hedera-wallet-snap]:
➤ YN0000: [@hashgraph/hedera-wallet-snap]:   • `Math.random` was detected in the Snap bundle. This is not a secure source of randomness, and should not be used in a secure context. Use `crypto.getRandomValues` instead.
➤ YN0000: [@hashgraph/hedera-wallet-snap]:
➤ YN0000: [@hashgraph/hedera-wallet-snap]:   • The snap attempted to use one or more Node.js builtins, but no browser fallback has been provided. The MetaMask Snaps CLI does not support Node.js builtins by default. If you want to use this module, you must set `polyfills` to `true` or an object with the builtins to polyfill as the key and `true` as the value. To disable this warning, set `stats.builtIns` to `false` in your snap config file, or add the module to the `stats.builtIns.ignore` array.
➤ YN0000: [@hashgraph/hedera-wallet-snap]:
➤ YN0000: [@hashgraph/hedera-wallet-snap]:       • crypto
➤ YN0000: [@hashgraph/hedera-wallet-snap]:
➤ YN0000: [@hashgraph/hedera-wallet-snap]: ✔ Done!

Hedera network

other

Version

v0.2.5

Operating system

None

@kpachhai kpachhai added the Bug An error that causes the feature to behave differently than what was expected based on design. label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error that causes the feature to behave differently than what was expected based on design.
Projects
None yet
Development

No branches or pull requests

2 participants