You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting warnings while starting the hedera-wallet-snap
Steps to reproduce
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
The text was updated successfully, but these errors were encountered:
kpachhai
added
the
Bug
An error that causes the feature to behave differently than what was expected based on design.
label
Mar 27, 2024
Polyfill is fixed but waiting on metamask wrt the Math.random issue, the only place it's used is in bundle.js so it's a webpack thing that some standard config changes don't seem to be fixing.
Description
Getting warnings while starting the hedera-wallet-snap
Steps to reproduce
yarn start
Additional context
Hedera network
other
Version
v0.2.5
Operating system
None
The text was updated successfully, but these errors were encountered: