Print expected event contract to be able to check what's wrong
Remove some duplication