Skip to content

Commit 2b5c3b4

Browse files
committed
Only append bundle id when client id not null
1 parent 0e4705f commit 2b5c3b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/Thirdweb/Core/Scripts/ThirdwebManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void Initialize(string chainIdentifier)
178178
? (string.IsNullOrEmpty(clientId) ? $"https://{chainData.chainId}.rpc.thirdweb.com/" : $"https://{chainData.chainId}.rpc.thirdweb.com/{clientId}")
179179
: chainData.rpcOverride;
180180

181-
if (new System.Uri(rpc).Host.EndsWith(".thirdweb.com"))
181+
if (options.clientId != null && new System.Uri(rpc).Host.EndsWith(".thirdweb.com"))
182182
rpc = rpc.AppendBundleIdQueryParam();
183183

184184
if (chainData.identifier == activeChain)

Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public struct BiconomyOptions
262262
? (string.IsNullOrEmpty(options.clientId) ? $"https://{chainOrRPC}.rpc.thirdweb.com/" : $"https://{chainOrRPC}.rpc.thirdweb.com/{options.clientId}")
263263
: chainOrRPC;
264264

265-
if (new System.Uri(rpc).Host.EndsWith(".thirdweb.com") && !rpc.Contains("bundleId="))
265+
if (options.clientId != null && new System.Uri(rpc).Host.EndsWith(".thirdweb.com") && !rpc.Contains("bundleId="))
266266
rpc = rpc.AppendBundleIdQueryParam();
267267

268268
if (Utils.IsWebGLBuild())

0 commit comments

Comments
 (0)