McCartney inks Hammers deal