Legal Advice

I live in Texas and I was pulled over yesterday because my license was expired. When the cop came to my window they said it smelled like marijuana and they detained me to search the car. They never found the marijuana but they found a small container of thc wax in back seat. I honestly didn’t know it was there and said it was from a smoke shop. They let me go and said that they would test it to see if it’s thc and if it is I’ll have a warrant which I believe will be a felony. So I’m asking do they have permission to search my house or should I hideout somewhere? Also about to start a new job as well but I already did the background check, will they find me at my job?
[link] [comments]