diff --git a/package-lock.json b/package-lock.json index 95c2d15e..418a41ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "explorer-vite", - "version": "1.1.8", + "version": "1.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "explorer-vite", - "version": "1.1.8", + "version": "1.2.2", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.3.0", "@fortawesome/free-brands-svg-icons": "^6.3.0", @@ -24,7 +24,7 @@ "primeicons": "^5.0.0", "primevue": "^3.21.0", "rxjs": "^7.8.0", - "tsjs-xpx-chain-sdk": "^0.9.19", + "tsjs-xpx-chain-sdk": "^0.9.20", "utf-8-validate": "^5.0.10", "v-tooltip": "^2.1.3", "vite-plugin-node-polyfills": "^0.7.0", @@ -651,9 +651,9 @@ "integrity": "sha512-oeaetlodcqVsiZDxnEcqsbs+sXBkASxua0mXs5OXuPQXz3/wdPTMlxwfQ4z2HKcOik3S9voW3QJkp/KLWDhvRQ==" }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", + "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", "funding": [ { "type": "individual", @@ -6574,9 +6574,9 @@ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" }, "node_modules/tsjs-xpx-chain-sdk": { - "version": "0.9.19", - "resolved": "https://registry.npmjs.org/tsjs-xpx-chain-sdk/-/tsjs-xpx-chain-sdk-0.9.19.tgz", - "integrity": "sha512-ctmssPcZ1+t9x6SXl9/F96q9a1Ee7q5m/7mSrKSxSysMtrW0+VBSBaUF7V1EMFFASQvTx3TU8s6hWzLWLVYrWg==", + "version": "0.9.20", + "resolved": "https://registry.npmjs.org/tsjs-xpx-chain-sdk/-/tsjs-xpx-chain-sdk-0.9.20.tgz", + "integrity": "sha512-NuXn/YYRcrhc6T9ENv3FwgCmO8lwIX6CyL8esA5M7DQLvzobxxrej3OBbm7Osx3//Lwpgj44IXHx0sQIj5clBQ==", "dependencies": { "@js-joda/core": "^4.0.0", "axios": "^0.21.4", @@ -6609,26 +6609,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/tsjs-xpx-chain-sdk/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -7094,6 +7074,26 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/xml-name-validator": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", diff --git a/package.json b/package.json index 3308fc93..10ce804b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "explorer-vite", - "version": "1.2.1", + "version": "1.2.2", "private": true, "scripts": { "dev": "vite ", @@ -29,7 +29,7 @@ "primeicons": "^5.0.0", "primevue": "^3.21.0", "rxjs": "^7.8.0", - "tsjs-xpx-chain-sdk": "^0.9.19", + "tsjs-xpx-chain-sdk": "^0.9.20", "utf-8-validate": "^5.0.10", "v-tooltip": "^2.1.3", "vite-plugin-node-polyfills": "^0.7.0", diff --git a/src/util/transactionUtils.ts b/src/util/transactionUtils.ts index cec7d2fa..f1088e64 100644 --- a/src/util/transactionUtils.ts +++ b/src/util/transactionUtils.ts @@ -3761,7 +3761,7 @@ export class TransactionUtils { const sdas: SDA[] = []; - txnDetails.message = transferTxn.message.payload; + txnDetails.message = transferTxn.message.message ? transferTxn.message.message : transferTxn.message.payload; txnDetails.messageType = transferTxn.message.type; switch (txnDetails.messageType) { @@ -4132,7 +4132,7 @@ export class TransactionUtils { if (txns[i].type === TransactionType.TRANSFER) { const transferTxn = txns[i] as TransferTransaction; - txn.message = transferTxn.message.payload; + txn.message = transferTxn.message.message ? transferTxn.message.message : transferTxn.message.payload; txn.messageType = transferTxn.message.type; if (txn.messageType === MessageType.PlainMessage) { @@ -4321,7 +4321,7 @@ export class TransactionUtils { if (txns[i].type === TransactionType.TRANSFER) { const transferTxn = txns[i] as TransferTransaction; - txn.message = transferTxn.message.payload; + txn.message = transferTxn.message.message ? transferTxn.message.message : transferTxn.message.payload; txn.messageType = transferTxn.message.type; // if(txn.messageType === MessageType.PlainMessage){ @@ -4526,7 +4526,7 @@ export class TransactionUtils { if (txns[i].type === TransactionType.TRANSFER) { const transferTxn = txns[i] as TransferTransaction; - txn.message = transferTxn.message.payload; + txn.message = transferTxn.message.message ? transferTxn.message.message : transferTxn.message.payload; txn.messageType = transferTxn.message.type; if (txn.messageType === MessageType.PlainMessage) { @@ -4753,7 +4753,7 @@ export class TransactionUtils { if (transaction.type === TransactionType.TRANSFER) { const transferTxn = transaction as TransferTransaction; - txn.message = transferTxn.message.payload; + txn.message = transferTxn.message.message ? transferTxn.message.message : transferTxn.message.payload; txn.messageType = transferTxn.message.type; if (txn.messageType === MessageType.PlainMessage) { const newType = TransactionUtils.convertToSwapType(txn.message);