Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

3 participants