UNPKG

@mojito-inc/secondary-market

Version:

Mojito secondary market is the platform to purchase NFT.

2 lines (1 loc) 1.47 kB
const l=l=>{var o,e,i,d,n,v,r,u,a,c,s,t,g,p,h,w,x,C,L,m,y;return(null===(d=null===(i=null===(e=null===(o=null==l?void 0:l.message)||void 0===o?void 0:o.toLowerCase)||void 0===e?void 0:e.call(o))||void 0===i?void 0:i.includes)||void 0===d?void 0:d.call(i,"internal json-rpc error"))||(null===(r=null===(v=null===(n=null==l?void 0:l.toLowerCase)||void 0===n?void 0:n.call(l))||void 0===v?void 0:v.includes)||void 0===r?void 0:r.call(v,"internal json-rpc error"))?"Transaction error encountered. Please try again.":(null===(s=null===(c=null===(a=null===(u=null==l?void 0:l.message)||void 0===u?void 0:u.toLowerCase)||void 0===a?void 0:a.call(u))||void 0===c?void 0:c.includes)||void 0===s?void 0:s.call(c,"unexpected error"))||(null===(p=null===(g=null===(t=null==l?void 0:l.toLowerCase)||void 0===t?void 0:t.call(l))||void 0===g?void 0:g.includes)||void 0===p?void 0:p.call(g,"unexpected error"))?"An unexpected error occurred. Please try again.":(null===(C=null===(x=null===(w=null===(h=null==l?void 0:l.message)||void 0===h?void 0:h.toLowerCase)||void 0===w?void 0:w.call(h))||void 0===x?void 0:x.includes)||void 0===C?void 0:C.call(x,"block height exceeded"))||(null===(y=null===(m=null===(L=null==l?void 0:l.toLowerCase)||void 0===L?void 0:L.call(l))||void 0===m?void 0:m.includes)||void 0===y?void 0:y.call(m,"block height exceeded"))?"The transaction has been timeout. Please try again.":"string"==typeof l?l:null==l?void 0:l.message};export{l as customErrorMessage};