@@ -17,8 +17,8 @@ use crate::protocol::{address::AztecAddress, traits::{Deserialize, Serialize}};
1717
1818/// Core interface for interacting with aztec-nr contract features.
1919///
20- /// This struct is automatically injected into every [external](crate::macros::functions::external) and
21- /// [internal](crate::macros::functions::internal) contract function by the Aztec macro system and is accessible
20+ /// This struct is automatically injected into every [` external` ](crate::macros::functions::external) and
21+ /// [` internal` ](crate::macros::functions::internal) contract function by the Aztec macro system and is accessible
2222/// through the `self` variable.
2323///
2424/// ## Usage in Contract Functions
@@ -50,8 +50,8 @@ use crate::protocol::{address::AztecAddress, traits::{Deserialize, Serialize}};
5050/// ## Type Parameters
5151///
5252/// - `Context`: The execution context type - either `&mut PrivateContext`, `PublicContext`, or `UtilityContext`
53- /// - `Storage`: The contract's storage struct (defined with [storage](crate::macros::storage::storage), or `()` if the
54- /// contract has no storage
53+ /// - `Storage`: The contract's storage struct (defined with [` storage` ](crate::macros::storage::storage), or `()` if
54+ /// the contract has no storage
5555/// - `CallSelf`: Macro-generated type for calling contract's own non-view functions
5656/// - `EnqueueSelf`: Macro-generated type for enqueuing calls to the contract's own non-view functions
5757/// - `CallSelfStatic`: Macro-generated type for calling contract's own view functions
@@ -61,8 +61,8 @@ pub struct ContractSelf<Context, Storage, CallSelf, EnqueueSelf, CallSelfStatic,
6161 pub address : AztecAddress ,
6262
6363 /// The contract's storage instance, representing the struct to which the
64- /// [storage](crate::macros::storage::storage) macro was applied in your contract. If the contract has no storage,
65- /// the type of this will be `()`.
64+ /// [` storage` ](crate::macros::storage::storage) macro was applied in your contract. If the contract has no
65+ /// storage, the type of this will be `()`.
6666 ///
6767 /// This storage instance is specialized for the current execution context (private, public, or utility) and
6868 /// provides access to the contract's state variables. Each state variable accepts the context as a generic
@@ -73,13 +73,13 @@ pub struct ContractSelf<Context, Storage, CallSelf, EnqueueSelf, CallSelfStatic,
7373 ///
7474 /// If you've arrived here while trying to access your contract's storage while the `Storage` generic type is set
7575 /// to unit type `()`, it means you haven't yet defined a Storage struct using the
76- /// [storage](crate::macros::storage::storage) macro in your contract. For guidance on setting this up, please
76+ /// [` storage` ](crate::macros::storage::storage) macro in your contract. For guidance on setting this up, please
7777 /// refer to our docs: https://docs.aztec.network/developers/docs/guides/smart_contracts/storage
7878
7979 pub storage : Storage ,
8080
81- /// The execution context whose type is determined by the [external](crate::macros::functions::external) attribute
82- /// of the contract function based on the external function type (private, public, or utility).
81+ /// The execution context whose type is determined by the [` external` ](crate::macros::functions::external)
82+ /// attribute of the contract function based on the external function type (private, public, or utility).
8383 pub context : Context ,
8484
8585 /// Provides type-safe methods for calling this contract's own non-view functions.
@@ -176,16 +176,16 @@ impl<Storage, CallSelf, EnqueueSelf, CallSelfStatic, EnqueueSelfStatic, CallInte
176176 /// executed in a transaction (i.e. transaction entrypoint) does **not** have a caller. This function panics when
177177 /// executed in such a context.
178178 ///
179- /// If you need to handle these cases, use [PrivateContext::maybe_msg_sender].
179+ /// If you need to handle these cases, use [` PrivateContext::maybe_msg_sender` ].
180180 pub fn msg_sender (self ) -> AztecAddress {
181181 self .context .maybe_msg_sender ().unwrap ()
182182 }
183183
184184 /// Emits an event privately.
185185 ///
186186 /// Unlike public events, private events do not reveal their contents publicly. They instead create an
187- /// [EventMessage] containing the private event information, which **MUST** be delivered to a recipient via
188- /// [EventMessage::deliver_to] in order for them to learn about the event. Multiple recipients can have the same
187+ /// [` EventMessage` ] containing the private event information, which **MUST** be delivered to a recipient via
188+ /// [` EventMessage::deliver_to` ] in order for them to learn about the event. Multiple recipients can have the same
189189 /// message be delivered to them.
190190 ///
191191 /// # Example
@@ -206,7 +206,7 @@ impl<Storage, CallSelf, EnqueueSelf, CallSelfStatic, EnqueueSelfStatic, CallInte
206206 /// # Cost
207207 ///
208208 /// Private event emission always results in the creation of a nullifer, which acts as a commitment to the event
209- /// and is used by third parties to verify its authenticity. See [EventMessage::deliver_to] for the costs
209+ /// and is used by third parties to verify its authenticity. See [` EventMessage::deliver_to` ] for the costs
210210 /// associated to delivery.
211211 ///
212212 /// # Privacy
@@ -335,8 +335,8 @@ impl<Storage, CallSelf, EnqueueSelf, CallSelfStatic, EnqueueSelfStatic, CallInte
335335
336336 /// Enqueues a privacy-preserving public contract call function.
337337 ///
338- /// This is the same as [ContractSelf::enqueue], except it hides this calling contract's address from the target
339- /// public function (i.e. [ContractSelf::msg_sender] will panic).
338+ /// This is the same as [` ContractSelf::enqueue` ], except it hides this calling contract's address from the target
339+ /// public function (i.e. [` ContractSelf::msg_sender` ] will panic).
340340 ///
341341 /// This means the origin of the call (msg_sender) will not be publicly visible to any blockchain observers, nor to
342342 /// the target public function. If the target public function reads `self.msg_sender()` the call will revert.
@@ -460,9 +460,9 @@ impl<Storage, CallSelf, CallSelfStatic, CallInternal> ContractSelf<PublicContext
460460 /// ## Incognito Calls
461461 ///
462462 /// Contracts can call public functions from private ones hiding their identity (see
463- /// [enqueue_incognito](ContractSelf::enqueue_incognito)). This function reverts when executed in such a context.
463+ /// [` enqueue_incognito` ](ContractSelf::enqueue_incognito)). This function reverts when executed in such a context.
464464 ///
465- /// If you need to handle these cases, use [PublicContext::maybe_msg_sender].
465+ /// If you need to handle these cases, use [` PublicContext::maybe_msg_sender` ].
466466 pub fn msg_sender (self : Self ) -> AztecAddress {
467467 self .context .maybe_msg_sender ().unwrap ()
468468 }
0 commit comments