UNPKG

@sofaws/dapp-core

Version:

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

3 lines (2 loc) 433 B
import{a as t}from"./chunk-3KAY5IWM.js";import{k as a}from"./chunk-P6M5SGWP.js";import{k as i,m as n}from"./chunk-HBP5N4FR.js";n();a();var S=({parts:e,decodedParts:o,identifier:d})=>{let r=[...o];if(e[0]==="ESDTNFTTransfer"&&e[2]&&(r[2]=t(e[2],"decimal")),d==="ESDTNFTTransfer"&&e[1]){let s=i.Buffer.from(String(e[1]),"base64");r[1]=t(s.toString("hex"),"decimal")}return r};export{S as a}; //# sourceMappingURL=chunk-MYQKOL46.js.map