Skip to content

Commit

Permalink
refactor: make uint32_t casts explicit in tx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Mar 5, 2024
1 parent 8be8771 commit 08f65b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/transaction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 08f65b8

Please sign in to comment.