unit_tests: fix uninitialized field

This commit is contained in:
Crypto City 2021-09-12 18:31:29 +00:00
parent 9bf39fd190
commit a80ff364d6

View File

@ -943,6 +943,7 @@ TEST(cc_command, assign_items)
cmd.items.resize(1);
cmd.items[0].type = ITEM_BASIC_STONE;
cmd.items[0].amount = 1;
cmd.flag = 0;
uint64_t c1 = cc::get_cc_command_cost(cmd);
ASSERT_EQ(c1, 0);
uint64_t cc_in = (uint64_t)-1, cc_out = (uint64_t)-1;