UNPKG

@lifi/sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

15 lines 821 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTransactionFailedMessage = void 0; const config_js_1 = require("../config.js"); const getTransactionFailedMessage = async (step, txLink) => { const chain = await config_js_1.config.getChainById(step.action.toChainId); const baseString = `It appears that your transaction may not have been successful. However, to confirm this, please check your ${chain.name} wallet for ${step.action.toToken.symbol}.`; return txLink ? `${baseString} You can also check the&nbsp;<a href="${txLink}" target="_blank" rel="nofollow noreferrer">block explorer</a> for more information.` : baseString; }; exports.getTransactionFailedMessage = getTransactionFailedMessage; //# sourceMappingURL=getTransactionMessage.js.map