Skip to content

Commit 25baee0

Browse files
chore: upgrade iexec SDK to support arbitrum-sepolia-testnet
1 parent e49b76c commit 25baee0

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"class-variance-authority": "^0.7.1",
4242
"clsx": "^2.1.1",
4343
"graphql": "^16.10.0",
44-
"iexec": "^8.15.0",
44+
"iexec": "^8.16.0",
4545
"lucide-react": "^0.487.0",
4646
"prettier-plugin-tailwindcss": "^0.6.11",
4747
"react": "^19.0.0",

src/externals/iexecSdkClient.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export async function initIExecSDKs({ connector }: { connector?: Connector }) {
2626
return;
2727
}
2828
// Initialize
29-
const config = new IExecConfig({ ethProvider: provider });
29+
const config = new IExecConfig(
30+
{ ethProvider: provider },
31+
{ allowExperimentalNetworks: true }
32+
);
3033
iExec = new IExec(config);
3134

3235
IEXEC_CLIENT_RESOLVES.forEach((resolve) => resolve(iExec!));
@@ -47,7 +50,10 @@ export function getReadonlyIExec(chainId: number): IExec {
4750
if (!chain) throw new Error(`Unknown chainId ${chainId}`);
4851

4952
if (!readonlyIExec) {
50-
readonlyIExec = new IExec({ ethProvider: chain?.slug });
53+
readonlyIExec = new IExec(
54+
{ ethProvider: chain.id },
55+
{ allowExperimentalNetworks: true }
56+
);
5157
}
5258
return readonlyIExec;
5359
}

0 commit comments

Comments
 (0)