This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying I am +ferni on my passcard. https://onename.com/ferni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Web3 = require('web3'); | |
var web3 = new Web3(); | |
function fixSha3(web3) { | |
var original = web3.sha3; | |
web3.sha3 = function() { | |
var result = original.apply(this, arguments); | |
if (result[1] !== 'x') { | |
return '0x' + result; | |
} |