@vleap/warps-adapter-fastset 0.1.0-alpha.33 → 0.1.0-alpha.34

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.mjs CHANGED
@@ -23,7 +23,7 @@ function stringToUint8Array(str) {
23
23
  }
24
24
 
25
25
  // src/helpers/general.ts
26
- import { getProviderUrl } from "@vleap/warps";
26
+ import { getProviderConfig } from "@vleap/warps";
27
27
 
28
28
  // src/sdk/FastsetClient.ts
29
29
  import * as bech32 from "bech32";
@@ -1466,8 +1466,8 @@ var FastsetClient = class {
1466
1466
 
1467
1467
  // src/helpers/general.ts
1468
1468
  var getConfiguredFastsetClient = (config, chain2) => {
1469
- const proxyUrl = getProviderUrl(config, chain2.name, config.env, chain2.defaultApiUrl);
1470
- return new FastsetClient(proxyUrl);
1469
+ const providerConfig = getProviderConfig(config, chain2.name, config.env, chain2.defaultApiUrl);
1470
+ return new FastsetClient(providerConfig.url);
1471
1471
  };
1472
1472
 
1473
1473
  // src/tokens/fastset.ts
@@ -2937,7 +2937,6 @@ function createFastsetAdapter(chainName, chainPrefix, chainInfos) {
2937
2937
  if (!chainInfo) throw new Error(`FastsetAdapter: chain info not found for chain ${chainName}`);
2938
2938
  if (!fallback) throw new Error("Fastset adapter requires a fallback adapter");
2939
2939
  return {
2940
- chain: chainName,
2941
2940
  chainInfo,
2942
2941
  prefix: chainPrefix,
2943
2942
  builder: () => fallback.builder(),