Two util methods, getForeignAsset and cacheForeignAssets, create an ApiPromise to get foreign asset data from the parachain. We can replace that to use the squid context instead to fetch the same data, keeping it consistent with the rest of our squid implementation.
Two util methods,
getForeignAsset
andcacheForeignAssets
, create anApiPromise
to get foreign asset data from the parachain. We can replace that to use the squid context instead to fetch the same data, keeping it consistent with the rest of our squid implementation.