diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-21 06:49:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-21 06:49:33 +0800 |
commit | eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed (patch) | |
tree | 57160b5fe519b3e498fa8300b5bb79237dfbe506 | |
parent | ac7994d8c71ba5d9380139d20b237d58730d3bb1 (diff) | |
download | dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar.gz dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar.bz2 dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar.lz dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar.xz dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.tar.zst dexon-eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed.zip |
Updated properties
-rw-r--r-- | main.js | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -321,16 +321,6 @@ var eth = web3.eth; // Eth object properties - Object.defineProperty(eth, "key", { - get: function() { - return new Promise(function(resolve, reject) { - eth.provider.send({call: "getKey"}, function(k) { - resolve(k); - }); - }); - }, - }); - Object.defineProperty(eth, "gasPrice", { get: function() { return "10000000000000" @@ -340,7 +330,7 @@ Object.defineProperty(eth, "coinbase", { get: function() { return new Promise(function(resolve, reject) { - web3.provider.send({call: "getCoinBase"}, function(coinbase) { + web3.provider.send({call: "coinbase"}, function(coinbase) { resolve(coinbase); }); }); @@ -350,7 +340,7 @@ Object.defineProperty(eth, "listening", { get: function() { return new Promise(function(resolve, reject) { - web3.provider.send({call: "getIsListening"}, function(listening) { + web3.provider.send({call: "listening"}, function(listening) { resolve(listening); }); }); @@ -361,7 +351,7 @@ Object.defineProperty(eth, "mining", { get: function() { return new Promise(function(resolve, reject) { - web3.provider.send({call: "getIsMining"}, function(mining) { + web3.provider.send({call: "mining"}, function(mining) { resolve(mining); }); }); @@ -371,7 +361,7 @@ Object.defineProperty(eth, "peerCount", { get: function() { return new Promise(function(resolve, reject) { - web3.provider.send({call: "getPeerCount"}, function(peerCount) { + web3.provider.send({call: "peerCount"}, function(peerCount) { resolve(peerCount); }); }); |