Files
to_session/text/3.65.22_0/scripts/ui/chunk-GL3VXC6P.js
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

8 lines
800 B
JavaScript

import{c as h,l as u}from"./chunk-QY24TFF7.js";import{f as p,o as i,q as l}from"./chunk-QTLWQ5AJ.js";i();l();var f=p(h());function A(e){return e.metamask.addressBookList||[]}function g(e){return e.metamask.recentlyAddresses||{}}var I=(0,f.createSelector)(u,(e,t)=>{let{selectedWallet:r,keyringIdentities:s}=e.keyring;return{selectedWallet:r,keyringIdentities:s,chainId:t}},(e,{selectedWallet:t,keyringIdentities:r,chainId:s})=>{let m=(e||[]).find(n=>+n.chainId==+s)?.localType,d=[],c="";return r.forEach(n=>{n.walletIdentities.forEach(a=>{let o=a.account[m];a.walletId===t&&(c=o),o&&d.push(o)})}),{currentAddress:c,allAddress:d}});export{A as a,g as b,I as c};
window.inOKXExtension = true;
window.inMiniApp = false;
window.ASSETS_BUILD_TYPE = "publish";
//# sourceMappingURL=chunk-GL3VXC6P.js.map