I doubt that Charles would exchange Italy for Hungary, as having France cutting in two his domains would simply destroy the efforts to keep France encircled, even less for a vague promise and not for a signed treay (and not even then). And Charles was anything but stupid.
That part is almost ASB.