@harmony-js/account
Advanced tools
Comparing version 0.0.54 to 0.0.60
@@ -187,3 +187,3 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var balanceObject, _a, signature_1, txnHash_1; | ||
var balanceObject, _a, signature_1, rawTransaction_1; | ||
var _this = this; | ||
@@ -206,5 +206,5 @@ return tslib_1.__generator(this, function (_b) { | ||
if (encodeMode === 'rlp') { | ||
_a = tslib_1.__read(transaction_1.RLPSign(transaction, this.privateKey), 2), signature_1 = _a[0], txnHash_1 = _a[1]; | ||
_a = tslib_1.__read(transaction_1.RLPSign(transaction, this.privateKey), 2), signature_1 = _a[0], rawTransaction_1 = _a[1]; | ||
return [2 /*return*/, transaction.map(function (obj) { | ||
return tslib_1.__assign({}, obj, { signature: signature_1, txnHash: txnHash_1, from: _this.address }); | ||
return tslib_1.__assign({}, obj, { signature: signature_1, rawTransaction: rawTransaction_1, from: _this.address }); | ||
})]; | ||
@@ -211,0 +211,0 @@ } |
@@ -295,3 +295,3 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var balanceObject, _a, signature_1, txnHash_1; | ||
var balanceObject, _a, signature_1, rawTransaction_1; | ||
var _this = this; | ||
@@ -314,5 +314,5 @@ return __generator(this, function (_b) { | ||
if (encodeMode === 'rlp') { | ||
_a = __read(transaction.RLPSign(transaction$$1, this.privateKey), 2), signature_1 = _a[0], txnHash_1 = _a[1]; | ||
_a = __read(transaction.RLPSign(transaction$$1, this.privateKey), 2), signature_1 = _a[0], rawTransaction_1 = _a[1]; | ||
return [2 /*return*/, transaction$$1.map(function (obj) { | ||
return __assign({}, obj, { signature: signature_1, txnHash: txnHash_1, from: _this.address }); | ||
return __assign({}, obj, { signature: signature_1, rawTransaction: rawTransaction_1, from: _this.address }); | ||
})]; | ||
@@ -319,0 +319,0 @@ } |
@@ -291,3 +291,3 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var balanceObject, _a, signature_1, txnHash_1; | ||
var balanceObject, _a, signature_1, rawTransaction_1; | ||
var _this = this; | ||
@@ -310,5 +310,5 @@ return __generator(this, function (_b) { | ||
if (encodeMode === 'rlp') { | ||
_a = __read(RLPSign(transaction, this.privateKey), 2), signature_1 = _a[0], txnHash_1 = _a[1]; | ||
_a = __read(RLPSign(transaction, this.privateKey), 2), signature_1 = _a[0], rawTransaction_1 = _a[1]; | ||
return [2 /*return*/, transaction.map(function (obj) { | ||
return __assign({}, obj, { signature: signature_1, txnHash: txnHash_1, from: _this.address }); | ||
return __assign({}, obj, { signature: signature_1, rawTransaction: rawTransaction_1, from: _this.address }); | ||
})]; | ||
@@ -315,0 +315,0 @@ } |
@@ -292,3 +292,3 @@ /** | ||
return __awaiter(this, void 0, void 0, function () { | ||
var balanceObject, _a, signature_1, txnHash_1; | ||
var balanceObject, _a, signature_1, rawTransaction_1; | ||
var _this = this; | ||
@@ -311,5 +311,5 @@ return __generator(this, function (_b) { | ||
if (encodeMode === 'rlp') { | ||
_a = __read(transaction.RLPSign(transaction$$1, this.privateKey), 2), signature_1 = _a[0], txnHash_1 = _a[1]; | ||
_a = __read(transaction.RLPSign(transaction$$1, this.privateKey), 2), signature_1 = _a[0], rawTransaction_1 = _a[1]; | ||
return [2 /*return*/, transaction$$1.map(function (obj) { | ||
return __assign({}, obj, { signature: signature_1, txnHash: txnHash_1, from: _this.address }); | ||
return __assign({}, obj, { signature: signature_1, rawTransaction: rawTransaction_1, from: _this.address }); | ||
})]; | ||
@@ -316,0 +316,0 @@ } |
{ | ||
"name": "@harmony-js/account", | ||
"version": "0.0.54", | ||
"version": "0.0.60", | ||
"description": "account and wallet for harmony", | ||
@@ -21,9 +21,9 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/core": "0.0.54", | ||
"@harmony-js/crypto": "0.0.54", | ||
"@harmony-js/network": "0.0.54", | ||
"@harmony-js/transaction": "0.0.54", | ||
"@harmony-js/utils": "0.0.54" | ||
"@harmony-js/core": "0.0.60", | ||
"@harmony-js/crypto": "0.0.60", | ||
"@harmony-js/network": "0.0.60", | ||
"@harmony-js/transaction": "0.0.60", | ||
"@harmony-js/utils": "0.0.60" | ||
}, | ||
"gitHead": "dfdde42131a9fd0df5ed9d008e5bf251cad8a69e" | ||
"gitHead": "dce1b4d29ea5261dea16799fccde857c8ae365eb" | ||
} |
@@ -173,3 +173,3 @@ import { | ||
if (encodeMode === 'rlp') { | ||
const [signature, txnHash]: [Signature, string] = RLPSign( | ||
const [signature, rawTransaction]: [Signature, string] = RLPSign( | ||
transaction, | ||
@@ -179,3 +179,3 @@ this.privateKey, | ||
return transaction.map((obj: any) => { | ||
return { ...obj, signature, txnHash, from: this.address }; | ||
return { ...obj, signature, rawTransaction, from: this.address }; | ||
}); | ||
@@ -182,0 +182,0 @@ } else { |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
501736
0
+ Added@harmony-js/contract@0.0.60(transitive)
+ Added@harmony-js/core@0.0.60(transitive)
+ Added@harmony-js/crypto@0.0.60(transitive)
+ Added@harmony-js/network@0.0.60(transitive)
+ Added@harmony-js/transaction@0.0.60(transitive)
+ Added@harmony-js/utils@0.0.60(transitive)
- Removed@harmony-js/contract@0.0.54(transitive)
- Removed@harmony-js/core@0.0.54(transitive)
- Removed@harmony-js/crypto@0.0.54(transitive)
- Removed@harmony-js/network@0.0.54(transitive)
- Removed@harmony-js/transaction@0.0.54(transitive)
- Removed@harmony-js/utils@0.0.54(transitive)
Updated@harmony-js/core@0.0.60
Updated@harmony-js/crypto@0.0.60
Updated@harmony-js/network@0.0.60
Updated@harmony-js/utils@0.0.60