How to get contract id of the current contract?

Previously, there was a function std::call_frames::contract_id. It seems like on testnet it’s gone

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

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.