While pumpkin is boiling lightly beat eggs together in a bowl. Set aside.
In a large wok over medium heat, add oil and fry pumpkin until heated through, stirring occasionally, about 5 minutes. Add sugar and fish sauce, stir to combine. Pour eggs over pumpkin and allow to set, without stirring, for about two minutes. Continue to cook at low heat, stirring mixture only occasionally.
Serve hot, garnished with basil leaves, with rice as part of a southern Thai mea