From 08f65b865cc092c41ceceb966243db78eec81a0f Mon Sep 17 00:00:00 2001 From: div72 Date: Tue, 5 Mar 2024 14:33:38 +0300 Subject: [PATCH] refactor: make uint32_t casts explicit in tx tests --- src/test/transaction_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 26809b7214..dbb899992f 100755 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(tx_valid) break; } - COutPoint outpoint(uint256S(vinput[0].get_str()), vinput[1].get_int()); + COutPoint outpoint(uint256S(vinput[0].get_str()), uint32_t(vinput[1].get_int())); mapprevOutScriptPubKeys[outpoint] = ParseScript(vinput[2].get_str()); } @@ -175,7 +175,7 @@ BOOST_AUTO_TEST_CASE(tx_invalid) fValid = false; break; } - COutPoint outpoint(uint256S(vinput[0].get_str()), vinput[1].get_int()); + COutPoint outpoint(uint256S(vinput[0].get_str()), uint32_t(vinput[1].get_int())); mapprevOutScriptPubKeys[outpoint] = ParseScript(vinput[2].get_str()); } if (!fValid)