A man was caught with heroin worth up to almost £4,000 after a police raid on his Menzieshill flat.
Jordan Cathro admitted being concerned in the supply of the drug on October 2 last year at his Leith Walk home.
Dundee Sheriff Court heard police executed a search warrant and found more than 96g of heroin in his living room as well as scales which had traces of the Class A drug on them.
The 41-year-old immediately admitted his guilt to police when he was arrested. Charges of possessing other drugs were dropped by prosecutors.
Solicitor George Donnelly said he would reserve mitigation until the preparation of social work reports.