Skip to content

Commit

Permalink
Fixed a test in contracTest due to bignumber.js lib, update some depe…
Browse files Browse the repository at this point in the history
…ndence pull requests
  • Loading branch information
mdranger committed Nov 8, 2019
1 parent 8991dd3 commit dc54d7b
Show file tree
Hide file tree
Showing 9 changed files with 705 additions and 854 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MOAC JavaScript API version 0.1.21.
# MOAC JavaScript API version 0.1.22.

This is the [MOAC](https://github.com/MOACChain/moac-core) compatible JavaScript API which implements the Generic JSON RPC spec as described in the Chain3.md. It's available on npm as a node module, for bower and component as an embeddable js and as a meteor.js package.

Expand All @@ -14,6 +14,7 @@ LICENSE file for more details.

## Updates

* v0.1.22 Fixed a test in contracTest due to bignumber.js lib, update some dependence pull requests.
* v0.1.21 Fixed the previous bug with lodash.
* v0.1.20 Added admin and txpool RPC methods for VNODE, fixed signature error of zero to support microchain DAPP call functions.
* v0.1.19 Added microchain functions to support microchain DAPP call functions.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chain3",
"version": "0.1.21",
"version": "0.1.22",
"description": "MOAC JavaScript API",
"main": "dist/chain3.js",
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion lib/chain3/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ SolidityFunction.prototype.sendTransaction = function() {
}

if (!callback) {
console.log("Send TX SolidityFunction.prototype.sendTransaction:", payload)
return this._mc.sendTransaction(payload);
}

Expand Down
3 changes: 2 additions & 1 deletion lib/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function sha256(bytes) {
And a heaven in a wild flower,
Hold infinty in the palm of your hand,
And eternity in an hour.
William Blake, Auguries Of Innocence
William Blake (1757–1827), Auguries Of Innocence
1 mc = 1,000,000 sand
1 mc = 1,000 Xiao
*/
Expand All @@ -150,6 +150,7 @@ var unitMap = {
'millimc': '1000000000000000',
'milli': '1000000000000000',
'mc': '1000000000000000000',
'ine': '1000000000000000000',
'kmc': '1000000000000000000000',
'grand': '1000000000000000000000',
'mmc': '1000000000000000000000000',
Expand Down
2 changes: 1 addition & 1 deletion lib/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.1.21"
"version": "0.1.22"
}
Loading

0 comments on commit dc54d7b

Please sign in to comment.