@cryptorubic/web3 1.1.0-alpha-stellar.34 → 1.1.0-alpha-stellar.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -67,6 +67,9 @@ class StellarAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
67
67
|
return Promise.all(tokenAddresses.map((token) => this.callForTokenInfo(token)));
|
|
68
68
|
}
|
|
69
69
|
async callForTokenInfo(tokenAddress) {
|
|
70
|
+
if (web3_pure_1.Web3Pure.isNativeAddress(core_1.BLOCKCHAIN_NAME.STELLAR, tokenAddress)) {
|
|
71
|
+
return core_1.nativeTokensList[core_1.BLOCKCHAIN_NAME.STELLAR];
|
|
72
|
+
}
|
|
70
73
|
const metadata = ['name', 'symbol', 'decimals'];
|
|
71
74
|
const contract = new stellar_sdk_1.Contract(this.getTokenContractId(tokenAddress));
|
|
72
75
|
const [name, symbol, decimals] = await Promise.all(metadata.map(async (method) => {
|