calling completed contract cloud code