His defeat and his humiliating treaty with the Despot weakened Hunyadi's position. The prelates and the barons confirmed the treaty and assigned Branković to negotiate with the Ottomans, and Hunyadi resigned from the office of Voivode of Transylvania. He invaded the lands controlled by John Jiskra and his Czech mercenaries in the autumn of 1449, but could not defeat them. On the other hand, the rulers of two neighboring countriesStjepan Tomaš, King of Bosnia, and Bogdan II, Voivode of Moldaviaconcluded a treaty with Hunyadi, promising that they would remain loyal to him. In early 1450 Hunyadi and Jiskra signed a peace treaty in Mezőkövesd, acknowledging that many prosperous towns in Upper Hungaryincluding Pressburg/Pozsony (present-day Bratislava, Slovakia) and Kassa (present-day Košice, Slovakia)remained under Jiskra's rule.