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

TypeError: Cannot read properties of undefined (reading 'randomBytes') #4612

Open
armada2013 opened this issue Feb 19, 2024 · 0 comments
Open
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@armada2013
Copy link

Ethers Version

6.11.1

Search Terms

No response

Describe the Problem

let n = BigInt(ethers.utils.randomBytes(32));
When I compile this code, it suggests that TypeError: Cannot read properties of undefined (reading 'randomBytes'). How do I deal with this bug?

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

node.js (v12 or newer)

Environment (Other)

No response

@armada2013 armada2013 added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants