Skip to content

Commit

Permalink
Fix Tezos reveal operation adding
Browse files Browse the repository at this point in the history
  • Loading branch information
matsakiv committed May 16, 2023
1 parent af659a6 commit 65d05fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Atomex.Blockchain.Tezos/TezosOperationFiller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public static class TezosOperationFiller

var counter = int.Parse(accountInfo.Counter) + 1;

var operations = new List<ManagerOperationContent>();

if (!isRevealed)
{
var revealContent = new RevealContent
Expand All @@ -88,15 +86,15 @@ public static class TezosOperationFiller

modifiedRequests.AddRange(operationsRequests);
operationsRequests = modifiedRequests;

operations.Add(revealContent);
}

var operationsContents = new List<ManagerOperationContent>();

foreach (var request in operationsRequests)
{
request.Content.Counter = counter++;

operations.Add(request.Content);
operationsContents.Add(request.Content);
}

var header = headOffset != 0
Expand Down Expand Up @@ -126,7 +124,7 @@ public static class TezosOperationFiller
}

return new TezosOperationRequest(
operationsContents: operations,
operationsContents: operationsContents,
branch: header.Hash,
isAutoFilled: isAutoFilled);
}
Expand Down

0 comments on commit 65d05fe

Please sign in to comment.