@@ -400,6 +400,7 @@ class LLLERC20TestFramework: public LLLExecutionFramework
400400 BOOST_REQUIRE (errors.empty ());
401401 }
402402 sendMessage (*s_compiledErc20, true );
403+ BOOST_REQUIRE (m_transactionSuccessful);
403404 BOOST_REQUIRE (!m_output.empty ());
404405 }
405406
@@ -629,18 +630,22 @@ BOOST_AUTO_TEST_CASE(bad_data)
629630
630631 // Correct data: transfer(address _to, 1).
631632 sendMessage ((bytes)fromHex (" a9059cbb" ) + (bytes)fromHex (" 000000000000000000000000123456789a123456789a123456789a123456789a" ) + encodeArgs (1 ), false , 0 );
633+ BOOST_CHECK (m_transactionSuccessful);
632634 BOOST_CHECK (m_output == SUCCESS);
633635
634636 // Too little data (address is truncated by one byte).
635637 sendMessage ((bytes)fromHex (" a9059cbb" ) + (bytes)fromHex (" 000000000000000000000000123456789a123456789a123456789a12345678" ) + encodeArgs (1 ), false , 0 );
638+ BOOST_CHECK (!m_transactionSuccessful);
636639 BOOST_CHECK (m_output != SUCCESS);
637640
638641 // Too much data (address is extended with a zero byte).
639642 sendMessage ((bytes)fromHex (" a9059cbb" ) + (bytes)fromHex (" 000000000000000000000000123456789a123456789a123456789a123456789a00" ) + encodeArgs (1 ), false , 0 );
643+ BOOST_CHECK (!m_transactionSuccessful);
640644 BOOST_CHECK (m_output != SUCCESS);
641645
642646 // Invalid address (a bit above the 160th is set).
643647 sendMessage ((bytes)fromHex (" a9059cbb" ) + (bytes)fromHex (" 000000000000000000000100123456789a123456789a123456789a123456789a" ) + encodeArgs (1 ), false , 0 );
648+ BOOST_CHECK (!m_transactionSuccessful);
644649 BOOST_CHECK (m_output != SUCCESS);
645650}
646651
0 commit comments