Green’s Dictionary of Slang

soles n.1

[the piece of hashish is approx. shaped like a sole; or the smuggling of hashish in the soles of purpose-built shoes]

(drugs) hashish; occas. in sing.

[US]L. Young et al. Recreational Drugs.
[US]‘Gloss. of Drug Terms’ National Instit. Drug Abuse.
[US]G. Cuomo Couple of Cops 158: We occasionally ran into hash, peddled in what was called a sole, because it was shaped like a foot. A sole weighed about half a pound. Users would shave the hash with a razor and smoke it in a pipe.
[US]ONDCP Street Terms 20: Soles — Hashish.