UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 584 B
import{h as p}from"./chunk-V2DQWH6R.js";import{a as d,f as i}from"./chunk-44WWQAQY.js";import{a as o}from"./chunk-UB233QTH.js";import{a as l}from"./chunk-SIAIYQNL.js";import{f as n}from"./chunk-IZ52XEZC.js";import{j as a,m as c}from"./chunk-HBP5N4FR.js";c();import h from"axios";l();function $(){return a(this,null,function*(){let t=o.getState(),u=p(t),e=d(t),s=i(t);try{if(s==null&&e){let{data:r}=yield h.get(`${u}/accounts/${e}`);return o.dispatch(n(r.shard)),r.shard}else return s}catch(r){return console.error(r),null}})}export{$ as a}; //# sourceMappingURL=chunk-D2YJ6QJD.js.map