get_invoking_contract will be the previous value of get_current_contract. A contract invocation can only access the public methods of a contract.
One public function is an exception: a contract’s __constructor is invoked by the host at deployment, rather than by another contract. For example, the token example contract sets its admin and metadata in a constructor:
deploy_contract, which deploys the contract and runs its constructor in the same invocation:
register: