Skip to content

Commit

Permalink
Fixing parsing reject codes from cbor (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekctek committed Apr 24, 2023
1 parent ee0551b commit 6a9be15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Agent/Responses/QueryResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ internal static QueryResponse ReadCbor(CborReader reader)
reader.ReadEndMap();
break;
case "reject_code":
CborTag codeType = reader.PeekTag();
switch (codeType)
CborReaderState state = reader.PeekState();
switch (state)
{
case CborTag.UnsignedBigNum:
case CborReaderState.UnsignedInteger:
rejectCode = reader.ReadUInt64();
break;
default:
Expand Down

0 comments on commit 6a9be15

Please sign in to comment.