@harmony-js/contract
Advanced tools
Comparing version 0.1.48 to 0.1.50
@@ -28,3 +28,3 @@ "use strict"; | ||
// params, | ||
_this.map(_this.abiModel, _this.contract, params), _this.abiModel.getEvent(key), _this.contract); | ||
_this.map(_this.abiModel.getEvent(key), _this.contract, params), _this.abiModel.getEvent(key), _this.contract); | ||
}; | ||
@@ -31,0 +31,0 @@ Object.assign(_this.contract.events, newObject); |
@@ -35,2 +35,3 @@ "use strict"; | ||
}); | ||
var waitConfirm = params && params.waitConfirm === false ? false : true; | ||
var updateNonce = params && params.nonce !== undefined ? false : true; | ||
@@ -42,5 +43,10 @@ _this.signTransaction(updateNonce).then(function (signed) { | ||
_this.contract.transaction = _this.transaction; | ||
_this.confirm(id).then(function () { | ||
if (waitConfirm) { | ||
_this.confirm(id).then(function () { | ||
_this.transaction.emitter.resolve(_this.contract); | ||
}); | ||
} | ||
else { | ||
_this.transaction.emitter.resolve(_this.contract); | ||
}); | ||
} | ||
}); | ||
@@ -47,0 +53,0 @@ }); |
{ | ||
"name": "@harmony-js/contract", | ||
"version": "0.1.48", | ||
"version": "0.1.50", | ||
"description": "contract libraries for harmony", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "4ebe736137b7a3359542e6bbd2a63d0b03a91c4b" | ||
"gitHead": "76661bf6547d20fb799441d04f4654430dcb07cf" | ||
} |
@@ -36,3 +36,3 @@ /** | ||
// params, | ||
this.map(this.abiModel, this.contract, params), | ||
this.map(this.abiModel.getEvent(key), this.contract, params), | ||
this.abiModel.getEvent(key), | ||
@@ -39,0 +39,0 @@ this.contract, |
@@ -46,2 +46,3 @@ /** | ||
const waitConfirm: boolean = params && params.waitConfirm === false ? false : true; | ||
const updateNonce: boolean = params && params.nonce !== undefined ? false : true; | ||
@@ -53,5 +54,9 @@ this.signTransaction(updateNonce).then((signed) => { | ||
this.contract.transaction = this.transaction; | ||
this.confirm(id).then(() => { | ||
if (waitConfirm) { | ||
this.confirm(id).then(() => { | ||
this.transaction.emitter.resolve(this.contract); | ||
}); | ||
} else { | ||
this.transaction.emitter.resolve(this.contract); | ||
}); | ||
} | ||
}); | ||
@@ -58,0 +63,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16539352
15425