8 lines
1002 B
JavaScript
8 lines
1002 B
JavaScript
import{a as l}from"./chunk-MVG6U2BH.js";import{o as S}from"./chunk-64WUUNDB.js";import{ba as p}from"./chunk-QY24TFF7.js";import{H as I,y as i}from"./chunk-SQMXULWT.js";import{f as c,ra as E}from"./chunk-GSIHKWLV.js";import{b as F}from"./chunk-BF2V36QE.js";import{f as s,o as a,q as n}from"./chunk-QTLWQ5AJ.js";a();n();var o=s(F()),d=s(S());E();I();var A=({from:f,method:m,chainIndex:h,handleCancel:u,to:g,dappData:k,dappInfo:_,isRpcChain:C},L=p)=>{let[M,e]=(0,o.useState)(!1),[w,r]=(0,o.useState)(""),x=l({handleCancel:u});return(0,d.useMount)(async()=>{try{e(!0),r("");let t=(await L({from:f,method:m,chainIndex:h,to:g,isRpcChain:C,dappData:k,dappInfo:_}))?.popupInfoList;t?.length&&await x(t).catch(c),e(!1)}catch{r(i("wallet_extension_transaction_error_general_check_network"))}finally{e(!1)}}),{addressCheckLoading:M,addressCheckError:w}},z=A;export{z as a};
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=chunk-2RQFA5HD.js.map
|