diff options
Diffstat (limited to 'lib/contract.js')
-rw-r--r-- | lib/contract.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/contract.js b/lib/contract.js index 94a6d7dac..748844fec 100644 --- a/lib/contract.js +++ b/lib/contract.js @@ -124,7 +124,7 @@ var addEventRelatedPropertiesToContract = function (contract, desc, address) { Object.defineProperty(contract, 'topic', { get: function() { return utils.filterEvents(desc).map(function (e) { - return abi.signatureFromAscii(e.name); + return abi.eventSignatureFromAscii(e.name); }); } }); @@ -137,7 +137,7 @@ var addEventsToContract = function (contract, desc, address) { var impl = function () { var params = Array.prototype.slice.call(arguments); - var signature = abi.signatureFromAscii(e.name); + var signature = abi.eventSignatureFromAscii(e.name); var event = eventImpl(address, signature, e); var o = event.apply(null, params); return web3.eth.watch(o); |