From 1a76e6e74538c36bdcd7d3140c86265421120b14 Mon Sep 17 00:00:00 2001 From: alex v Date: Sun, 24 Nov 2024 22:24:04 +0100 Subject: [PATCH] type fix --- src/blsct/tokens/predicate_exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)