lib/contract_interact/helper.js
function (web3Provider, result) {
    return new Promise(function (onResolve, onReject) {
      onResolve(web3Provider.utils.hexToNumber(result));
    });
  }
function (web3Provider, result) {
    return new Promise(function (onResolve, onReject) {
      onResolve(web3Provider.utils.hexToNumber(result));
    });
  }
function ( web3Provider , result ) { return new Promise ( function ( onResolve , onReject ) { onResolve ( web3Provider . utils . hexToNumber ( result ) ) ; } ) ; }
Decode result and typecast it to a Number

@param {web3} web3Provider - It could be value chain or utility chain provider
@param {string} result - current contract address

@return {promise}
Decode result and typecast it to a Number