Skip to content

Commit 1fcdf93

Browse files
committed
fix: use properly formed hex encoding in evo_assetlock
The next commit will no longer treat invalid encodings as representing valid data, hex messages cannot be odd length.
1 parent f427116 commit 1fcdf93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/evo_assetlocks_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ BOOST_FIXTURE_TEST_CASE(evo_assetlock, TestChain100Setup)
289289
{
290290
// OP_RETURN should not have any data
291291
CMutableTransaction txReturnData(tx);
292-
txReturnData.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex("abc");
292+
txReturnData.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex("abcd");
293293

294294
BOOST_CHECK(!CheckAssetLockTx(CTransaction(txReturnData), tx_state));
295295
BOOST_CHECK(tx_state.GetRejectReason() == "bad-assetlocktx-non-empty-return");

0 commit comments

Comments
 (0)