From 611b839f72559e7f38ee7726b1dc23dcc552cfa2 Mon Sep 17 00:00:00 2001 From: alex v Date: Sun, 24 Nov 2024 23:43:42 +0100 Subject: [PATCH] fix const reference argument move --- src/blsct/tokens/predicate_exec.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blsct/tokens/predicate_exec.cpp b/src/blsct/tokens/predicate_exec.cpp index 36bac76c2c47e..9bf7698412820 100644 --- a/src/blsct/tokens/predicate_exec.cpp +++ b/src/blsct/tokens/predicate_exec.cpp @@ -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()) {