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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: