Skip to content

Commit 0f461a9

Browse files
committed
[email protected] | general update. support query contract.
1 parent b277486 commit 0f461a9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/og.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,9 @@ OG.prototype.getBalance = function(address){
268268
}
269269

270270
OG.prototype.queryContract = function(data){
271-
var method = "/queryContract";
272271
var options = {
273272
method: 'POST',
274-
url: this.currentProvider.host + method,
273+
url: this.currentProvider.host + "/query_contract",
275274
headers: {
276275
'content-type': 'application/json'
277276
},

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "og-sdk",
3-
"version": "0.2.7",
3+
"version": "0.2.71",
44
"description": "Node.js scraper module for og DAG chain",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)