@harmony-js/account
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -240,7 +240,6 @@ "use strict"; | ||
if (!updateNonce) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.updateBalances(blockNumber)]; | ||
txShardID = transaction.txParams.shardID; | ||
return [4 /*yield*/, this.getShardBalance(typeof txShardID === 'string' ? Number.parseInt(txShardID, 10) : txShardID, blockNumber)]; | ||
case 1: | ||
_b.sent(); | ||
txShardID = transaction.txParams.shardID; | ||
shardBalanceObject = this.shards.get(txShardID); | ||
shardBalanceObject = _b.sent(); | ||
if (shardBalanceObject !== undefined) { | ||
@@ -247,0 +246,0 @@ shardNonce = shardBalanceObject.nonce; |
@@ -345,7 +345,6 @@ /** | ||
if (!updateNonce) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.updateBalances(blockNumber)]; | ||
txShardID = transaction$$1.txParams.shardID; | ||
return [4 /*yield*/, this.getShardBalance(typeof txShardID === 'string' ? Number.parseInt(txShardID, 10) : txShardID, blockNumber)]; | ||
case 1: | ||
_b.sent(); | ||
txShardID = transaction$$1.txParams.shardID; | ||
shardBalanceObject = this.shards.get(txShardID); | ||
shardBalanceObject = _b.sent(); | ||
if (shardBalanceObject !== undefined) { | ||
@@ -352,0 +351,0 @@ shardNonce = shardBalanceObject.nonce; |
@@ -341,7 +341,6 @@ /** | ||
if (!updateNonce) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.updateBalances(blockNumber)]; | ||
txShardID = transaction.txParams.shardID; | ||
return [4 /*yield*/, this.getShardBalance(typeof txShardID === 'string' ? Number.parseInt(txShardID, 10) : txShardID, blockNumber)]; | ||
case 1: | ||
_b.sent(); | ||
txShardID = transaction.txParams.shardID; | ||
shardBalanceObject = this.shards.get(txShardID); | ||
shardBalanceObject = _b.sent(); | ||
if (shardBalanceObject !== undefined) { | ||
@@ -348,0 +347,0 @@ shardNonce = shardBalanceObject.nonce; |
@@ -342,7 +342,6 @@ /** | ||
if (!updateNonce) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.updateBalances(blockNumber)]; | ||
txShardID = transaction$$1.txParams.shardID; | ||
return [4 /*yield*/, this.getShardBalance(typeof txShardID === 'string' ? Number.parseInt(txShardID, 10) : txShardID, blockNumber)]; | ||
case 1: | ||
_b.sent(); | ||
txShardID = transaction$$1.txParams.shardID; | ||
shardBalanceObject = this.shards.get(txShardID); | ||
shardBalanceObject = _b.sent(); | ||
if (shardBalanceObject !== undefined) { | ||
@@ -349,0 +348,0 @@ shardNonce = shardBalanceObject.nonce; |
{ | ||
"name": "@harmony-js/account", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "account and wallet for harmony", | ||
@@ -21,9 +21,9 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/core": "0.1.19", | ||
"@harmony-js/core": "0.1.20", | ||
"@harmony-js/crypto": "0.1.14", | ||
"@harmony-js/network": "0.1.19", | ||
"@harmony-js/transaction": "0.1.19", | ||
"@harmony-js/transaction": "0.1.20", | ||
"@harmony-js/utils": "0.1.14" | ||
}, | ||
"gitHead": "1a76aeebacecd1e3a1c1eca91517f2889e23171a" | ||
"gitHead": "469f4a37b53e466271c0e8521832b99e9725091d" | ||
} |
@@ -190,5 +190,8 @@ import { | ||
if (updateNonce) { | ||
await this.updateBalances(blockNumber); | ||
// await this.updateBalances(blockNumber); | ||
const txShardID = transaction.txParams.shardID; | ||
const shardBalanceObject = this.shards.get(txShardID); | ||
const shardBalanceObject = await this.getShardBalance( | ||
typeof txShardID === 'string' ? Number.parseInt(txShardID, 10) : txShardID, | ||
blockNumber, | ||
); | ||
if (shardBalanceObject !== undefined) { | ||
@@ -195,0 +198,0 @@ const shardNonce = shardBalanceObject.nonce; |
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
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
421562
4878
+ Added@harmony-js/contract@0.1.20(transitive)
+ Added@harmony-js/core@0.1.20(transitive)
+ Added@harmony-js/transaction@0.1.20(transitive)
- Removed@harmony-js/contract@0.1.19(transitive)
- Removed@harmony-js/core@0.1.19(transitive)
- Removed@harmony-js/transaction@0.1.19(transitive)
Updated@harmony-js/core@0.1.20