Skip to content

Commit

Permalink
Fix missed api filters for sr operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Nov 15, 2024
1 parent 334e841 commit be21dd4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tzkt.Api/Repositories/AccountRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2914,27 +2914,27 @@ await Task.WhenAll(
: Task.FromResult(Enumerable.Empty<TransactionOperation>());

var smartRollupSrCementOps = smartRollup.SmartRollupCementCount > 0 && types.Contains(OpTypes.SmartRollupCement)
? Operations.GetSmartRollupCementOps(new() { rollup = _smartRollup }, pagination, quote)
? Operations.GetSmartRollupCementOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote)
: Task.FromResult(Enumerable.Empty<SmartRollupCementOperation>());

var smartRollupSrExecuteOps = smartRollup.SmartRollupExecuteCount > 0 && types.Contains(OpTypes.SmartRollupExecute)
? Operations.GetSmartRollupExecuteOps(new() { rollup = _smartRollup }, pagination, quote)
? Operations.GetSmartRollupExecuteOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote)
: Task.FromResult(Enumerable.Empty<SmartRollupExecuteOperation>());

var smartRollupSrOriginateOps = smartRollup.SmartRollupOriginateCount > 0 && types.Contains(OpTypes.SmartRollupOriginate)
? Operations.GetSmartRollupOriginateOps(new() { rollup = _smartRollup }, pagination, quote, format)
? Operations.GetSmartRollupOriginateOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote, format)
: Task.FromResult(Enumerable.Empty<SmartRollupOriginateOperation>());

var smartRollupSrPublishOps = smartRollup.SmartRollupPublishCount > 0 && types.Contains(OpTypes.SmartRollupPublish)
? Operations.GetSmartRollupPublishOps(new() { rollup = _smartRollup }, pagination, quote)
? Operations.GetSmartRollupPublishOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote)
: Task.FromResult(Enumerable.Empty<SmartRollupPublishOperation>());

var smartRollupSrRecoverBondOps = smartRollup.SmartRollupRecoverBondCount > 0 && types.Contains(OpTypes.SmartRollupRecoverBond)
? Operations.GetSmartRollupRecoverBondOps(new() { rollup = _smartRollup }, pagination, quote)
? Operations.GetSmartRollupRecoverBondOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote)
: Task.FromResult(Enumerable.Empty<SmartRollupRecoverBondOperation>());

var smartRollupSrRefuteOps = smartRollup.SmartRollupRefuteCount > 0 && types.Contains(OpTypes.SmartRollupRefute)
? Operations.GetSmartRollupRefuteOps(new() { rollup = _smartRollup }, pagination, quote)
? Operations.GetSmartRollupRefuteOps(new() { rollup = _smartRollup, level = level, timestamp = _timestamp, status = status }, pagination, quote)
: Task.FromResult(Enumerable.Empty<SmartRollupRefuteOperation>());

await Task.WhenAll(
Expand Down

0 comments on commit be21dd4

Please sign in to comment.