A young Perth man who was jailed after he sold a synthetic drug to his mate just hours before the friend died is appealing his two-year jail term.