Skip to content

Commit a97626f

Browse files
chore: js PubSub is now the same as go
1 parent 52ff4fc commit a97626f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/PublishedMessage.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,10 @@ public class PublishedMessage
2525
public PublishedMessage(string json)
2626
{
2727
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-
}
28+
this.Sender = Convert.FromBase64String((string)o["from"]).ToBase58();
3629
this.SequenceNumber = Convert.FromBase64String((string)o["seqno"]);
3730
this.DataBytes = Convert.FromBase64String((string)o["data"]);
38-
var topics = (JArray) (o["topicIDs"] ?? o["topicCIDs"]);
31+
var topics = (JArray) (o["topicIDs"]);
3932
this.Topics = topics.Select(t => (string)t);
4033
}
4134

0 commit comments

Comments
 (0)