Skip to content

Commit

Permalink
Fix bigmap copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Oct 13, 2023
1 parent 313d111 commit f6ed539
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ await Cache.BigMapKeys.Prefetch(Diffs
.Where(x => x.diff.Ptr >= 0 && !allocated.Contains(x.diff.Ptr) && x.diff.Action == BigMapDiffAction.Update)
.Select(x => (x.diff.Ptr, (x.diff as UpdateDiff).KeyHash)));

var copiedKeys = copiedFrom.Count == 0 ? null :
var copiedKeys = copiedFrom.Count == 0 ? new(0) :
await Db.BigMapKeys.AsNoTracking().Where(x => copiedFrom.Contains(x.BigMapPtr)).ToListAsync();
#endregion

Expand Down

0 comments on commit f6ed539

Please sign in to comment.