Skip to content

Commit 4666fb5

Browse files
ZimM-LostPolygonenlight
authored andcommitted
Fixed wrong assumption that zero-length protobuf is invalid
1 parent 6340f6c commit 4666fb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityProject/Assets/LoomSDK/Source/Runtime/Contract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected override ChainEventArgs TransformChainEvent(RawChainEventArgs e) {
102102
{
103103
var resp = new Response();
104104
resp.MergeFrom(result.DeliverTx.Data);
105-
if (resp.Body != null && resp.Body.Length != 0)
105+
if (resp.Body != null)
106106
{
107107
T msg = new T();
108108
msg.MergeFrom(resp.Body);

0 commit comments

Comments
 (0)