Skip to content

Commit

Permalink
Handles invalid give transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
embiimob committed Feb 14, 2023
1 parent d48bdf9 commit 6433519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion P2FK/classes/OBJ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public static OBJState GetObjectByAddress(string objectaddress, string username,
break;
}

if (givinspector == null)
if (givinspector == null || givinspector.Count < 2)
{
logstatus = "[\"" + transaction.SignedBy + "\",\"" + objectaddress + "\",\"give\",\"\",\"\",\"failed due to no data\"]";
break;
Expand Down

0 comments on commit 6433519

Please sign in to comment.