Your earning would be haram as you have agreed not to work and singed it!

Read more