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 +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/client/client.ts +1 -1
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
package/src/client/client.ts
CHANGED
|
@@ -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
|
);
|