Sam's grandmother has an old recipe for cherry buns.

To make them, she weighs two eggs. Then she takes the same weight in flour, and in sugar and in butter. She mixes all this together and then she adds half the weight of the $2$ eggs in chopped glace cherries.

She has enough mixture to put $45$ grams in each of $12$ paper cake cases.

What was the weight of one egg?