aboutsummaryrefslogtreecommitdiffstats
path: root/lib/contract.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-29 22:45:04 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-29 22:45:04 +0800
commit600c9dd27dde3269a1682b875f82d3db46cee2c9 (patch)
treebcbbeeda99c0f010eabaffa9c94789d16718474f /lib/contract.js
parente38046253201806dfb0b49e26da1aedf3a8a8bb8 (diff)
downloaddexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.gz
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.bz2
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.lz
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.xz
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.zst
dexon-600c9dd27dde3269a1682b875f82d3db46cee2c9.zip
topics are deprecated
Diffstat (limited to 'lib/contract.js')
-rw-r--r--lib/contract.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/contract.js b/lib/contract.js
index 0bf3ee471..eff16cca4 100644
--- a/lib/contract.js
+++ b/lib/contract.js
@@ -110,7 +110,7 @@ var addFunctionsToContract = function (contract, desc, address) {
var addEventRelatedPropertiesToContract = function (contract, desc, address) {
contract.address = address;
- Object.defineProperty(contract, 'topics', {
+ Object.defineProperty(contract, 'topic', {
get: function() {
return abi.filterEvents(desc).map(function (e) {
return abi.methodSignature(e.name);
@@ -134,7 +134,7 @@ var addEventsToContract = function (contract, desc, address) {
impl.address = address;
- Object.defineProperty(impl, 'topics', {
+ Object.defineProperty(impl, 'topic', {
get: function() {
return [abi.methodSignature(e.name)];
}