How to get contract id of the current contract?

This has been updated to ContractId::this(). This means you no longer need a separate import and follows the same syntax as other blockchain type instantiations.

There is documentation on this here.

2 Likes