diff --git a/test/unittests/state_transition_create_test.cpp b/test/unittests/state_transition_create_test.cpp index b58232e419..0f813a6b3b 100644 --- a/test/unittests/state_transition_create_test.cpp +++ b/test/unittests/state_transition_create_test.cpp @@ -22,6 +22,18 @@ TEST_F(state_transition, create2_factory) expect.post[create_address].code = bytes{0xFE}; } +TEST_F(state_transition, create_tx) +{ + static constexpr auto create_address = 0x8ef300b6a6a0b41e4f5d717074d9fd5c605c7285_address; + + const auto initcode = mstore8(0, push(0xFE)) + ret(0, 1); + + tx.to = std::nullopt; + tx.data = initcode; + + expect.post[create_address].code = bytes{0xFE}; +} + TEST_F(state_transition, eof_invalid_initcode) { // TODO: Correction of this address is not verified.