Skip to content

Commit

Permalink
Browserified 1.4.0 add CTID
Browse files Browse the repository at this point in the history
  • Loading branch information
WietseWind committed Aug 17, 2023
1 parent e80e068 commit 1de6095
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24389,7 +24389,11 @@ class TxData {
// log({Get: TxHash, Id: id, Url: connection.url})
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
if (connection.readyState === connection.OPEN) {
connection.send(JSON.stringify({ id, command: 'tx', transaction: TxHash }));
connection.send(JSON.stringify({
id,
command: 'tx',
[TxHash.length > 16 ? 'transaction' : 'ctid']: TxHash
}));
const onTx = (r) => {
var _a, _b, _c, _d, _e;
if (((r === null || r === void 0 ? void 0 : r.id) === id || ((_b = (_a = r) === null || _a === void 0 ? void 0 : _a.transaction) === null || _b === void 0 ? void 0 : _b.hash) === TxHash)
Expand Down
Loading

0 comments on commit 1de6095

Please sign in to comment.