Iran got their pallet of cash, they knew Obama was making the deal without the support of congress thereby giving the middle finger to US citizens. It would be diplomatic malpractice to not forecast the deal getting revoked, especially if they violated it (and they did)