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

on version 1.0.0-beta.41, web3.utils.randomHex is undefined #2270

Closed
BigMurry opened this issue Jan 30, 2019 · 3 comments
Closed

on version 1.0.0-beta.41, web3.utils.randomHex is undefined #2270

BigMurry opened this issue Jan 30, 2019 · 3 comments
Labels
Bug Addressing a bug

Comments

@BigMurry
Copy link

Expected behavior

web3.utils.randomHex should defined and work

Actual behavior

web3.utils.randomHex is not a function. It's undefined.

Steps to reproduce the behavior

import Web3 from 'web3';
const web3 = new Web3('http://localhost:8545');
console.log(typeof web3.utils.randomHex);

Error Logs

TypeError: web3.utils.randomHex is not a function

Versions

Web3.js - 1.0.0-beta.41

@caffeinum
Copy link

caffeinum commented Jan 30, 2019

Can confirm this bug, OS X, NodeJS 10.14

Rolled back to beta37, it works OK there.

Edit: on beta37, there is another bug: /issues/2077, so rolling back to beta35. Nevermind Lambo, when stable release 😁

@nivida
Copy link
Contributor

nivida commented Jan 31, 2019

Thanks for submitting this issue! I'll fix this issue on Monday.

@nivida
Copy link
Contributor

nivida commented Feb 4, 2019

I'm closing this issue because it got already reported and fixed in #2238

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

No branches or pull requests

3 participants