UNPKG

@pushchain/ui-kit

Version:

Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.

21 lines 778 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUniversalTxId = void 0; /** Build the `utx` value expected by the Donut lifecycle tracker. */ const getUniversalTxId = (progress, initialChain) => { const response = progress.response; if (!response) return null; const hash = typeof response.pushTxHash === 'string' ? response.pushTxHash : typeof response.txHash === 'string' ? response.txHash : null; if (!hash) return null; const chain = initialChain || (typeof response.chain === 'string' ? response.chain : null); return chain ? `${chain}:${hash}` : null; }; exports.getUniversalTxId = getUniversalTxId; //# sourceMappingURL=trackTransaction.js.map