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

Commit

Permalink
> modified: es6/webz.js
Browse files Browse the repository at this point in the history
>	modified:   lib/webz.js
>	modified:   package.json
  • Loading branch information
CapCap_ghostcorn authored and CapCap_ghostcorn committed Aug 28, 2018
1 parent 9329fa2 commit 49cbcc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion es6/webz.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Webz {
if (!util.isArray(pubkeyArray) && pubkeyArray.length === 0) throw Error('Input has to be non-empty Array')
const newPubkeyArray = pubkeyArray.map(d => util.isPubkey(d)).filter(t => !!t)
if (newPubkeyArray.length !== pubkeyArray.length) throw Error('one or some public key(s) inputted is invalid')
const resultArray = newPubkeyArray.map(k => util.getAddressFromPublicKey(k))
const resultArray = pubkeyArray.map(k => util.getAddressFromPublicKey(k))
return resultArray || []
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/webz.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var Webz = function Webz(args) {
return !!t;
});
if (newPubkeyArray.length !== pubkeyArray.length) throw Error('one or some public key(s) inputted is invalid');
var resultArray = newPubkeyArray.map(function (k) {
var resultArray = pubkeyArray.map(function (k) {
return util.getAddressFromPublicKey(k);
});
return resultArray || [];
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.15",
"version": "0.0.16",
"description": "Zilliqa Javascript Libraries",
"main": "lib/index.js",
"browser": "dist/Webz.browser.js",
Expand Down

0 comments on commit 49cbcc2

Please sign in to comment.