@cityofzion/bs-neo-legacy 1.7.0 → 1.7.1
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.
|
@@ -13,6 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _NeoTubeESNeoLegacy_network;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.NeoTubeESNeoLegacy = void 0;
|
|
16
|
+
const blockchain_service_1 = require("@cityofzion/blockchain-service");
|
|
16
17
|
const BSNeoLegacyHelper_1 = require("../../helpers/BSNeoLegacyHelper");
|
|
17
18
|
class NeoTubeESNeoLegacy {
|
|
18
19
|
constructor(network) {
|
|
@@ -22,7 +23,7 @@ class NeoTubeESNeoLegacy {
|
|
|
22
23
|
buildTransactionUrl(hash) {
|
|
23
24
|
if (!BSNeoLegacyHelper_1.BSNeoLegacyHelper.isMainnet(__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_network, "f")))
|
|
24
25
|
throw new Error('NeoTube is only available on mainnet');
|
|
25
|
-
return `https://neo2.neotube.io/transaction/${hash}`;
|
|
26
|
+
return `https://neo2.neotube.io/transaction/${(0, blockchain_service_1.denormalizeHash)(hash)}`;
|
|
26
27
|
}
|
|
27
28
|
buildContractUrl(contractHash) {
|
|
28
29
|
if (!BSNeoLegacyHelper_1.BSNeoLegacyHelper.isMainnet(__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_network, "f")))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo-legacy",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Coz",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@cityofzion/dora-ts": "0.0.11",
|
|
13
13
|
"@cityofzion/neon-js": "4.8.3",
|
|
14
14
|
"@ledgerhq/hw-transport": "~6.30.5",
|
|
15
|
-
"@cityofzion/blockchain-service": "1.13.
|
|
15
|
+
"@cityofzion/blockchain-service": "1.13.1",
|
|
16
16
|
"@cityofzion/bs-asteroid-sdk": "0.9.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|