-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Conversation
|
||
Module module; | ||
Serialization::MemoryInputStream stream((const U8*)code.data(), code.size()); | ||
BOOST_CHECK_THROW(WASM::serialize(stream, module), FatalSerializationException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really fond of testing internal components that are not directly visible to users. We don't really care about exactly where the restriction is enforced as long as the user-visible behavior is fixed.
@@ -1843,6 +1845,39 @@ BOOST_FIXTURE_TEST_CASE( depth_tests, TESTER ) try { | |||
|
|||
} FC_LOG_AND_RETHROW() | |||
|
|||
// TODO: Update to use eos-vm once merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to have to update tests, just because the implementation changes.
I'm not sure I understand, since I'm just using the constraint constant. |
The original loop emitted more bytes than the constant. It emitted 0x1400004 bytes, because that is the next larger multiple of 7. The new version emits exactly 0x1400000 bytes, which is smaller by 4. |
Ah I see now. It was misleadingly passing, because an exception was being thrown elsewhere in the code. Changing it to |
Change Description
Consensus Changes
API Changes
Documentation Additions