Heaven was subsequently found to be in possession of a drug line phone from which a number of offers to supply Class A drugs had been made and he was arrested.
A search of the property Heaven had been seen to go into uncovered a phone, a small quantity of cannabis, Class A drugs and almost £300 in cash.
Detective Sergeant Tom Hewitt said: “Our specialist officers work proactively to target drug dealers who come to Portsmouth with the aim of selling drugs.
“This sentence is another good result for Portsmouth and shows how we continue to disrupt this type of activity in the city.
“If you have any information about drug dealing call 101 or in an emergency, or if a crime is in progress, call 999.”