Preheat the oven to 400°. In a bowl, sift the flour with the baking soda, baking powder and salt. In another bowl, using a handheld electric mixer, beat the butter with 1 cup of the sugar until creamy. Add the melted chocolate and the egg and beat until smooth. Beat in the dry ingredients until incorporated.