@onekeyfe/kaspa-core-lib 1.0.0-alpha.1 → 1.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module '@onekeyfe/kaspacore-lib' {
1
+ declare module '@onekeyfe/kaspa-core-lib' {
2
2
 
3
3
  function initRuntime(): Promise;
4
4
  function setDebugLevel(level:number):void;
@@ -970,7 +970,7 @@ Transaction.prototype._updateChangeOutput = function() {
970
970
  }
971
971
  var available = this._getUnspentValue();
972
972
  var fee = this.getFee();
973
- var changeAmount = available.sub(fee);
973
+ var changeAmount = available.sub(new BN(fee));
974
974
  if (changeAmount.gt(0)) {
975
975
  this._changeIndex = this.outputs.length;
976
976
  this._addOutput(new Output({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/kaspa-core-lib",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "main": "index.js",
5
5
  "authors": [
6
6
  {