Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
> modified: es6/zil/index.js
Browse files Browse the repository at this point in the history
>	modified:   example/TestZil/index.html
>	modified:   lib/zil/index.js
>	modified:   package.json
  • Loading branch information
CapCap_ghostcorn authored and CapCap_ghostcorn committed Aug 28, 2018
1 parent f7393be commit 18b1b4e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions es6/zil/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const mapObjectToMethods = (main) => {
const zilObject = {}
zilMethod.setMessanger(main.messanger)
zilObject[zilKey] = zilMethod.methodBuilder()
return Object.assign(main, zilObject)
Object.assign(main, zilObject)
return false
})
}

Expand All @@ -35,8 +36,9 @@ const mapPropertyToObjects = (main) => {
}
const newZilObject = {}
newZilObject[asyncGetterName(zilName)] = zilProperty.propertyBuilder()
Object.defineProperty(main, zilName, zilObject)
Object.assign(main, newZilObject)
return Object.defineProperty(main, zilName, zilObject)
return false
})
}

Expand Down
2 changes: 1 addition & 1 deletion example/TestZil/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h4 id="currenProvider">http://localhost:4200 </h4>
var hr= webz.zil.getBalance({address:'9bfec715a6bd658fcb62b0f8cc9bfa2ade71434a'},(err,data)=>console.log(data))
// hr.then(console.log)

console.log(node)
console.log(webz)

</script>
</body>
Expand Down
6 changes: 4 additions & 2 deletions lib/zil/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ var mapObjectToMethods = function mapObjectToMethods(main) {
var zilObject = {};
zilMethod.setMessanger(main.messanger);
zilObject[zilKey] = zilMethod.methodBuilder();
return (0, _assign2.default)(main, zilObject);
(0, _assign2.default)(main, zilObject);
return false;
});
};

Expand All @@ -69,8 +70,9 @@ var mapPropertyToObjects = function mapPropertyToObjects(main) {
};
var newZilObject = {};
newZilObject[asyncGetterName(zilName)] = zilProperty.propertyBuilder();
(0, _defineProperty2.default)(main, zilName, zilObject);
(0, _assign2.default)(main, newZilObject);
return (0, _defineProperty2.default)(main, zilName, zilObject);
return false;
});
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webz.js",
"version": "0.0.28",
"version": "0.0.29",
"description": "Zilliqa Javascript Libraries",
"main": "lib/index.js",
"browser": "dist/Webz.browser.js",
Expand Down

0 comments on commit 18b1b4e

Please sign in to comment.