genlayer-js 0.15.0 → 0.15.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
 
2
2
 
3
+ ## 0.15.1 (2025-09-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **client:** disable viem transport retries (retryCount=0) to avoid duplicate requests ([#110](https://github.com/genlayerlabs/genlayer-js/issues/110)) ([dc2d623](https://github.com/genlayerlabs/genlayer-js/commit/dc2d623bb0a2bf96416e1590ddbcbf78adf9f9a7))
9
+
3
10
  ## 0.15.0 (2025-08-18)
4
11
 
5
12
 
package/dist/index.cjs CHANGED
@@ -1171,7 +1171,7 @@ var createClient = (config = { chain: _chunkZKBMABRAcjs.localnet }) => {
1171
1171
  if (config.endpoint) {
1172
1172
  chainConfig.rpcUrls.default.http = [config.endpoint];
1173
1173
  }
1174
- const customTransport = _viem.custom.call(void 0, getCustomTransportConfig(config));
1174
+ const customTransport = _viem.custom.call(void 0, getCustomTransportConfig(config), { retryCount: 0, retryDelay: 0 });
1175
1175
  const publicClient = createPublicClient(chainConfig, customTransport).extend(
1176
1176
  _viem.publicActions
1177
1177
  );
package/dist/index.js CHANGED
@@ -1171,7 +1171,7 @@ var createClient = (config = { chain: localnet }) => {
1171
1171
  if (config.endpoint) {
1172
1172
  chainConfig.rpcUrls.default.http = [config.endpoint];
1173
1173
  }
1174
- const customTransport = custom(getCustomTransportConfig(config));
1174
+ const customTransport = custom(getCustomTransportConfig(config), { retryCount: 0, retryDelay: 0 });
1175
1175
  const publicClient = createPublicClient(chainConfig, customTransport).extend(
1176
1176
  publicActions
1177
1177
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.15.0",
4
+ "version": "0.15.1",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -89,7 +89,7 @@ export const createClient = (config: ClientConfig = {chain: localnet}): GenLayer
89
89
  chainConfig.rpcUrls.default.http = [config.endpoint];
90
90
  }
91
91
 
92
- const customTransport = custom(getCustomTransportConfig(config));
92
+ const customTransport = custom(getCustomTransportConfig(config), {retryCount: 0, retryDelay: 0});
93
93
  const publicClient = createPublicClient(chainConfig as GenLayerChain, customTransport).extend(
94
94
  publicActions,
95
95
  );