@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 +1 -1
- package/lib/transaction/transaction.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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({
|