We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f3f98a + c10bf76 commit 17380e4Copy full SHA for 17380e4
lib/init.js
@@ -81,22 +81,22 @@ module.exports = function (apiKey, chain) {
81
topic2_3_opr,
82
topic3) {
83
84
- const module = 'log';
+ const module = 'logs';
85
const action = 'getLogs';
86
var params = {
87
module, action, apiKey, address
88
};
89
90
- if (toBlock) {
91
- params.tolock = toBlock;
+ if (address) {
+ params.address = address;
92
}
93
94
if (fromBlock) {
95
params.fromBlock = fromBlock;
96
97
98
if (toBlock) {
99
+ params.toBlock = toBlock;
100
101
102
if (topic0) {
0 commit comments