Commit ed9a95df authored by yann300's avatar yann300

fix test

parent 9f8ef396
......@@ -133,7 +133,7 @@ module.exports = {
* @return {Object} - return sha3ied value
*/
sha3_256: function (value) {
if (typeof value === 'string' && !value.startsWith('0x')) {
if (typeof value === 'string' && value.indexOf('0x') !== 0) {
value = '0x' + value
}
var ret = ethutil.bufferToHex(ethutil.setLengthLeft(value, 32))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment