My ex had a cousin who was addicted to opiates. When she had her baby and was in the hospital, the goddamn "lactation consultants" continued to insist that she breastfeed the baby despite the fact that she was a drug addict. Other family members finally had to step in and tell the lactation consultants to fuck off.
I understand addiction is a motherfucker. I have zero hate towards someone with an addiction so don't confuse this with that.
The fact you allow that to harm your children and those around you, that isn't acceptable and you need to face consequences for that. If you're just an addict in your house or away from other people, I get it and I hope you receive from help.
If you allow that to harm other people, you stopped being an addict and started becoming a risk factor. The rest of us are just trying to live, that includes your own children. They didn't ask for an addict for a parent, they were born outside of their control. You owe them better.