Step 1
Cook the potato and sweet potato in a large saucepan of boiling water for 15 mins or until just tender. Drain well. Transfer to a heatproof bowl. Set aside to cool. Use a fork to coarsely mash.
Step 2
Meanwhile, cook the peas in a small saucepan of boiling water for 2 mins or until heated through. Drain well. Return to the pan. Use a fork to coarsely mash.
Step 3
Add the peas, spring onion, ham, and 1 egg to the potato mixture. Season. Stir to combine. Divide the potato mixture into 12 even-sized portions. Shape into 8cm-diameter discs. Place on a baking tray lined with baking paper.
Step 4
Lightly whisk remaining egg in a bowl. Place the flour and breadcrumbs in separate bowls. Coat the cakes in flour, then dip in egg and roll in breadcrumbs to evenly coat. Place on a plate in the fridge for 30 mins to set.
Step 5
While the cakes are chilling, to make the pesto, process the coriander, almonds, garlic, chilli and lime juice in a small food processor until finely chopped. With the motor running, add oil in a thin, steady stream. Season. Transfer to a small serving dish.
Step 6
Heat the oil in a large frying pan over medium heat. Cook half the patties for 3 mins each side or until golden brown and heated through. Transfer to a plate lined with paper towel. Repeat with remaining patties.
Step 7
Place the potato cakes on a serving platter. Sprinkle with coriander leaves. Serve with pesto and lime wedges.