diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-01 02:07:59 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-01 02:07:59 +0800 |
commit | d5166918e9ad5158ddd2f76866adb21b59393b96 (patch) | |
tree | 1552f236a78e035c2bde05dd9b2ed26e1637b9a5 /lib/contract.js | |
parent | e6c0ec7278a860340ec6daf18344f001a3b6cd86 (diff) | |
download | dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar.gz dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar.bz2 dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar.lz dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar.xz dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.tar.zst dexon-d5166918e9ad5158ddd2f76866adb21b59393b96.zip |
fixed event signatures
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); |