diff --git a/src/blsct/tokens/predicate_exec.cpp b/src/blsct/tokens/predicate_exec.cpp index 01b5cba8909fe..36bac76c2c47e 100644 --- a/src/blsct/tokens/predicate_exec.cpp +++ b/src/blsct/tokens/predicate_exec.cpp @@ -40,7 +40,7 @@ bool ExecutePredicate(const ParsedPredicate& predicate, CCoinsViewCache& view, c if (!view.GetToken(hash, token)) return false; - if (predicate.GetNftId() >= token.info.nTotalSupply || predicate.GetNftId() < 0) + if ((CAmount)predicate.GetNftId() >= token.info.nTotalSupply || predicate.GetNftId() < 0) return false; if ((token.mapMintedNft.find(predicate.GetNftId()) != token.mapMintedNft.end()) == !fDisconnect)