How to find contract address inside a contract method? I mean the address of the instance of the contract.
In Solidity, the
this object is implicitly defined and refers to the current contract. Just like other contract objects, you can cast it to address (eg,
address(this)) to get its address.