[ctr/lua] Remove unnecessary setItem function calls
@@ -78,8 +78,9 @@ static void state_map_check_index(lua_State *L, state_map_t *m)
lua_typename(L, stored_type), m->id);
}
}
-// need hardfork
-// m->key_type = stored_type;
+ if (isHardfork(L, FORK_V2)) {
+ m->key_type = stored_type;
+ }
lua_pop(L, 1);
}
if (stored_type != LUA_TNONE && key_type != stored_type) {
