Skip to content

Commit 69d7061

Browse files
fix: add missing ipfsNodeURL parameter in IExecDataProtectorModule
This fix ensures that custom IPFS node URLs (e.g., local IPFS for testing) are properly passed to the internal IExec instance. Without this fix, tests using local IPFS (like Docker Compose setups) fail with connection timeouts to production IPFS nodes because the IExec instance was using default chain IPFS URLs instead of the custom configured ones. Changes: - Added ipfsNodeURL: ipfsNode to the IExec constructor options - This parameter was already extracted from config but never used - ipfsGatewayURL was already being passed, making this a missing piece Impact: - ✅ Tests with local IPFS now work correctly - ✅ Custom IPFS configurations are properly respected - ✅ No regression for production (spread operator still allows override) - ✅ Consistent with ipfsGatewayURL handling
1 parent 4db1403 commit 69d7061

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/sdk/src/lib/IExecDataProtectorModule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ abstract class IExecDataProtectorModule {
118118
{ ethProvider: this.ethProvider },
119119
{
120120
ipfsGatewayURL: ipfsGateway,
121+
ipfsNodeURL: ipfsNode,
121122
...this.options?.iexecOptions,
122123
allowExperimentalNetworks: this.options.allowExperimentalNetworks,
123124
}

0 commit comments

Comments
 (0)