I am not able to override this file vendor/magento/module-sales-rule/Model/Rule/Condition/Address.php
using preference.
<preference for="Companyname\Subtotalwithdiscount\Model\Rule\Condition\Address" type="Magento\SalesRule\Model\Rule\Condition\Address" />
Can someone guide me on this?