@sodax/wallet-sdk-react 1.0.0-rc.6 → 1.0.0-rc.7

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.
@@ -45,7 +45,7 @@ export abstract class XService {
45
45
  * @param xTokens Array of tokens to get balances for
46
46
  * @returns Promise resolving to object mapping token addresses to balances
47
47
  */
48
- public async getBalances(address: string | undefined, xTokens: XToken[]): Promise<Record<string, bigint>> {
48
+ public async getBalances(address: string | undefined, xTokens: readonly XToken[]): Promise<Record<string, bigint>> {
49
49
  if (!address) return {};
50
50
 
51
51
  const balancePromises = xTokens.map(async xToken => {
@@ -44,7 +44,7 @@ export function useXBalances({
44
44
  xChainId,
45
45
  xTokens,
46
46
  address,
47
- }: { xChainId: ChainId; xTokens: XToken[]; address: string | undefined }): UseQueryResult<{
47
+ }: { xChainId: ChainId; xTokens: readonly XToken[]; address: string | undefined }): UseQueryResult<{
48
48
  [key: string]: bigint;
49
49
  }> {
50
50
  const xService = useXService(getXChainType(xChainId));