Gently cook the diced onion in the olive oil for four minutes. Add the carrots and flour and mix in to absorb the excess oil.
Remove from the heat and slowly pour in the stock, stirring frequently, then return to the heat and bring to a simmer for five minutes. Add the drained butter beans and simmer for a further five minutes.
Top each bowl of soup with a teaspoon of pesto.