We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e7923 commit ae32027Copy full SHA for ae32027
Assets/Thirdweb/Core/Scripts/ThirdwebSession.cs
@@ -194,6 +194,8 @@ private async Task SwitchNetwork(ThirdwebChain newChain)
194
195
private async Task AddNetwork(ThirdwebChainData newChainData)
196
{
197
+ var sanitizedRpcs = newChainData.rpcUrls.Select(x => x.Contains("rpc.thirdweb.com") ? x[..(x.IndexOf(".com") + 4)] : x).ToArray();
198
+ newChainData.rpcUrls = sanitizedRpcs;
199
await Request<object>("wallet_addEthereumChain", new object[] { newChainData });
200
}
201
0 commit comments