If there's no evidence of ecstacy (It wasn't on you or the person you handed the cash to) then they can't charge you for anything. It's not illegal to give someone money.