aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.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 /dist/ethereum.js
parente38046253201806dfb0b49e26da1aedf3a8a8bb8 (diff)
downloadgo-tangerine-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.gz
go-tangerine-600c9dd27dde3269a1682b875f82d3db46cee2c9.tar.zst
go-tangerine-600c9dd27dde3269a1682b875f82d3db46cee2c9.zip
topics are deprecated
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js
index 0e160b93e..6a8c2a78f 100644
--- a/dist/ethereum.js
+++ b/dist/ethereum.js
@@ -541,7 +541,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);
@@ -565,7 +565,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)];
}
@@ -706,10 +706,13 @@ var Filter = function(options, impl) {
if (typeof options !== "string") {
// evaluate lazy properties
+ if (options.topics) {
+ console.warn('"topics" is deprecated, use "topic" instead');
+ }
+
options = {
to: options.to,
topic: options.topic,
- topics: options.topics,
earliest: options.earliest,
latest: options.latest,
max: options.max,