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 05c8c89 commit ddc1133Copy full SHA for ddc1133
Thirdweb/Thirdweb.RPC/ThirdwebRPC.cs
@@ -203,7 +203,7 @@ private async Task SendBatchAsync(List<RpcRequest> batch)
203
}
204
catch
205
{
206
- revertMsg = JsonConvert.SerializeObject(rpcResponse.Error.Data);
+ revertMsg = rpcResponse.Error.Data is string ? rpcResponse.Error.Data.ToString() : JsonConvert.SerializeObject(rpcResponse.Error.Data);
207
208
209
tcs.SetException(new Exception($"RPC Error for request {rpcResponse.Id}: {rpcResponse.Error.Message} {revertMsg}"));
0 commit comments