Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a string thats 64 characters long and I need to convert it into a bytes32 to be passed into a contract method call. How can I do it using web3js? I tried using hexToBytes in the utils package but that returns a