@harmony-js/transaction
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -11,3 +11,4 @@ "use strict"; | ||
var _a = tx.txParams, from = _a.from, nonce = _a.nonce; | ||
return crypto_1.getContractAddress(from, Number.parseInt("" + nonce, 10)); | ||
return crypto_1.getAddress(crypto_1.getContractAddress(from, Number.parseInt("" + nonce, 10))) | ||
.checksum; | ||
}; | ||
@@ -14,0 +15,0 @@ TransactionFactory.prototype.setMessenger = function (messenger) { |
{ | ||
"name": "@harmony-js/transaction", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "transaction package for harmony", | ||
@@ -21,8 +21,8 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/core": "0.0.30", | ||
"@harmony-js/crypto": "0.0.30", | ||
"@harmony-js/network": "0.0.30", | ||
"@harmony-js/utils": "0.0.30" | ||
"@harmony-js/core": "0.0.31", | ||
"@harmony-js/crypto": "0.0.31", | ||
"@harmony-js/network": "0.0.31", | ||
"@harmony-js/utils": "0.0.31" | ||
}, | ||
"gitHead": "3175801b6ad4ba98b643446f909f74a0401ec5f6" | ||
"gitHead": "75c521ffb5fa77af15b7b7044d5a7d64125d35be" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { getContractAddress } from '@harmony-js/crypto'; | ||
import { getContractAddress, getAddress } from '@harmony-js/crypto'; | ||
import { Messenger } from '@harmony-js/network'; | ||
@@ -9,3 +9,4 @@ import { Transaction } from './transaction'; | ||
const { from, nonce } = tx.txParams; | ||
return getContractAddress(from, Number.parseInt(`${nonce}`, 10)); | ||
return getAddress(getContractAddress(from, Number.parseInt(`${nonce}`, 10))) | ||
.checksum; | ||
} | ||
@@ -12,0 +13,0 @@ |
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
451204
5020
+ Added@harmony-js/account@0.0.31(transitive)
+ Added@harmony-js/contract@0.0.31(transitive)
+ Added@harmony-js/core@0.0.31(transitive)
+ Added@harmony-js/crypto@0.0.31(transitive)
+ Added@harmony-js/network@0.0.31(transitive)
+ Added@harmony-js/utils@0.0.31(transitive)
- Removed@harmony-js/account@0.0.30(transitive)
- Removed@harmony-js/contract@0.0.30(transitive)
- Removed@harmony-js/core@0.0.30(transitive)
- Removed@harmony-js/crypto@0.0.30(transitive)
- Removed@harmony-js/network@0.0.30(transitive)
- Removed@harmony-js/utils@0.0.30(transitive)
Updated@harmony-js/core@0.0.31
Updated@harmony-js/crypto@0.0.31
Updated@harmony-js/network@0.0.31
Updated@harmony-js/utils@0.0.31