src/components/util.js
function convertData2Hexd (data) {
  if (!isHexString(data)) {
    var hex = ''
    for (var i = 0; i < data.length; i++) {
      hex += data.charCodeAt(i).toString(16)
    }
    return '0x' + hex
  }
  return data
}
function convertData2Hexd (data) {
  if (!isHexString(data)) {
    var hex = ''
    for (var i = 0; i < data.length; i++) {
      hex += data.charCodeAt(i).toString(16)
    }
    return '0x' + hex
  }
  return data
}
function convertData2Hexd ( data ) { if ( ! isHexString ( data ) ) { var hex = '' for ( var i = 0 ; i < data . length ; i ++ ) { hex += data . charCodeAt ( i ) . toString ( 16 ) } return '0x' + hex } return data }
Convert to hexadecimal for data property of SendTransaction
@param {*} data
Convert to hexadecimal for data property of SendTransaction