hexToNumberString not require in new web3 versions?

by Руслан Миров   Last Updated August 13, 2019 14:28 PM

I have such code before

let profit = await contract.methods.calculateFundProfit().call()
   profit = web3.utils.hexToNumberString(profit._hex)

but after update web3 version, do I need do only this?

let profit = await contract.methods.calculateFundProfit().call()
Tags : web3js


Related Questions


How to get private key with web3 v0.2.x?

Updated January 06, 2019 18:28 PM


Which version of web3 shall i be using now?

Updated August 09, 2019 05:28 AM