UNPKG

@lifi/sdk

Version:

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

11 lines 620 B
import { config } from '../config.js'; export const getTransactionFailedMessage = async (step, txLink) => { const chain = await 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; }; //# sourceMappingURL=getTransactionMessage.js.map