@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 516 B
JavaScript
import{a as g}from"./chunk-FC3CZOOQ.js";import{a as e,b as i,c,d as s,j as a,m as f}from"./chunk-HBP5N4FR.js";f();import w from"axios";function D(l){return a(this,null,function*(){let t=`${l}/${g}`;try{let{data:r}=yield w.get(t);if(r!=null){let o="egldDenomination";if(o in r){let n=r,{[o]:m,decimals:p}=n,u=s(n,[c(o),"decimals"]);return i(e({},u),{decimals:m,digits:p})}return r}}catch(r){console.error("error fetching configuration for ",t)}return null})}export{D as a};
//# sourceMappingURL=chunk-XOSPBGLI.js.map