Skip to content

Commit

Permalink
fix const reference argument move
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v committed Nov 24, 2024
1 parent 70c4438 commit 611b839
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/blsct/tokens/predicate_exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ bool ExecutePredicate(const ParsedPredicate& predicate, CCoinsViewCache& view, c

if (fDisconnect)
view.EraseToken(hash);
else
view.AddToken(hash, std::move(predicate.GetTokenInfo()));
else {
auto info = predicate.GetTokenInfo();
view.AddToken(hash, std::move(info));
}

return true;
} else if (predicate.IsMintTokenPredicate()) {
Expand Down

0 comments on commit 611b839

Please sign in to comment.