wallaby-cash 2.3.4 → 2.3.5
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/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-data.service.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/types/wallet.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -575,7 +575,7 @@ const env = {
|
|
|
575
575
|
isNative: false,
|
|
576
576
|
isWeb,
|
|
577
577
|
};
|
|
578
|
-
const currentPackageVersion = "2.3.
|
|
578
|
+
const currentPackageVersion = "2.3.5" ;
|
|
579
579
|
|
|
580
580
|
/**
|
|
581
581
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -10605,9 +10605,9 @@ class WalletDataService extends Base {
|
|
|
10605
10605
|
* @param { BlockchainName } chainName the chain name enum. i.e. 'ETHEREUM', 'BITCOIN'
|
|
10606
10606
|
* @returns { TokenBalance } Balance of the token
|
|
10607
10607
|
*/
|
|
10608
|
-
async getTokenBalance({ address,
|
|
10608
|
+
async getTokenBalance({ address, assetSymbol, tokenStandard, chainName }) {
|
|
10609
10609
|
try {
|
|
10610
|
-
if (!address || !
|
|
10610
|
+
if (!address || !assetSymbol || (!chainName && !tokenStandard)) {
|
|
10611
10611
|
throw new WallabyError({
|
|
10612
10612
|
message: 'Missing required parameters',
|
|
10613
10613
|
statusCode: 400,
|
|
@@ -10615,7 +10615,7 @@ class WalletDataService extends Base {
|
|
|
10615
10615
|
});
|
|
10616
10616
|
}
|
|
10617
10617
|
const response = await this.request(WalletRoutes.getTokenBalance, {
|
|
10618
|
-
payload: { address,
|
|
10618
|
+
payload: { address, assetSymbol, chainName, tokenStandard },
|
|
10619
10619
|
});
|
|
10620
10620
|
return response;
|
|
10621
10621
|
}
|