It depends; if you started the challenge, you must have lost GCoins, but if you were the person being challenged, you must have lost the building your opponent selected.