Skip to content

Commit 697175e

Browse files
committed
refactor: explicitly generate the query
1 parent eed6679 commit 697175e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/account.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ module.exports = function(getRequest, apiKey) {
103103
queryObject.endblock = endblock;
104104
}
105105

106-
queryObject.txhash = txhash;
106+
const query = querystring.stringify(queryObject);
107107

108-
return getRequest(querystring.stringify(queryObject));
108+
return getRequest(query);
109109
},
110110
/**
111111
* Get a list of transactions for a specfic address

0 commit comments

Comments
 (0)