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 52ff4fc commit a97626fCopy full SHA for a97626f
src/PublishedMessage.cs
@@ -25,17 +25,10 @@ public class PublishedMessage
25
public PublishedMessage(string json)
26
{
27
var o = JObject.Parse(json);
28
- try
29
- {
30
- this.Sender = Convert.FromBase64String((string)o["from"]).ToBase58();
31
- }
32
- catch
33
34
- this.Sender = (string)o["from"];
35
+ this.Sender = Convert.FromBase64String((string)o["from"]).ToBase58();
36
this.SequenceNumber = Convert.FromBase64String((string)o["seqno"]);
37
this.DataBytes = Convert.FromBase64String((string)o["data"]);
38
- var topics = (JArray) (o["topicIDs"] ?? o["topicCIDs"]);
+ var topics = (JArray) (o["topicIDs"]);
39
this.Topics = topics.Select(t => (string)t);
40
}
41
0 commit comments