Months after becoming attached to play notorious mobster James 'Whitey' Bulger in Black Mass, Johnny Depp has pulled out of the project due to a salary dispute.

The actor was confirmed to shoot Black Mass after he wraps on the sci-fi project Transcendence, which is currently in production. Johnny Depp was set to receive his usual $20 million for Black Mass, but due to soft sales at Cannes, the producers were looking to trim the $60 million budget. They asked the actor to accept $10 million, which he and his reps refused.

We reported earlier this month that Joel Edgerton signed on to play FBI agent John Connolly, a childhood friend of Whitey Bulger. It isn't known if Johnny Depp's departure will affect the involvement of Joel Edgerton.

RELATED: Will Maze Runner 2 Be the First Big Box Office Hit of the Fall?

Barry Levinson is directing this crime drama from a screenplay by Jez Butterworth. It isn't known if production will be delayed because of this casting hurdle.