scripted-diff: Replace uint256S("str") -> uint256{"str"}

-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/\buint256S\("(0x)?([^"]{64})"\)/uint256{"\2"}/g' $(git grep -l uint256S)
-END VERIFY SCRIPT-
This commit is contained in:
Hodlinator
2024-08-05 09:14:47 +02:00
parent c06f2368e2
commit 2d9d752e4f
10 changed files with 114 additions and 114 deletions

View File

@@ -163,8 +163,8 @@ BOOST_AUTO_TEST_CASE( comparison ) // <= >= < >
// Ensure last element comparisons give a different result (swapped params):
BOOST_CHECK_LT(*(R1L.end()-1), *(R2L.end()-1));
// Hex strings represent reverse-encoded bytes, with lexicographic ordering:
BOOST_CHECK_LT(uint256S("1000000000000000000000000000000000000000000000000000000000000000"),
uint256S("0000000000000000000000000000000000000000000000000000000000000001"));
BOOST_CHECK_LT(uint256{"1000000000000000000000000000000000000000000000000000000000000000"},
uint256{"0000000000000000000000000000000000000000000000000000000000000001"});
}
BOOST_AUTO_TEST_CASE(methods) // GetHex SetHexDeprecated FromHex begin() end() size() GetLow64 GetSerializeSize, Serialize, Unserialize
@@ -395,7 +395,7 @@ BOOST_AUTO_TEST_CASE(from_hex)
BOOST_AUTO_TEST_CASE( check_ONE )
{
uint256 one = uint256S("0000000000000000000000000000000000000000000000000000000000000001");
uint256 one = uint256{"0000000000000000000000000000000000000000000000000000000000000001"};
BOOST_CHECK_EQUAL(one, uint256::ONE);
}