Struct PublicStaticCall
pub struct PublicStaticCall<let M: u32, let N: u32, T> {
pub target_contract: AztecAddress,
pub selector: FunctionSelector,
pub name: str<M>,
pub args: [Field; N],
/* private fields */
}
Fields
target_contract: AztecAddressselector: FunctionSelectorname: str<M>args: [Field; N]Implementations
impl<let M: u32, let N: u32, T> PublicStaticCall<M, N, T>
pub fn new(
target_contract: AztecAddress,
selector: FunctionSelector,
name: str<M>,
args: [Field; N],
) -> Self
pub fn with_gas(self, gas_opts: GasOpts) -> Self
pub unconstrained fn view(self, context: PublicContext) -> T
where
T: Deserialize
pub fn enqueue_view(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.enqueue_view(MyContract::at(address).my_public_static_function(...args))
instead of manually constructing and calling PublicStaticCall.
pub fn enqueue_view_incognito(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.enqueue_view_incognito(MyContract::at(address).my_public_static_function(...args))
instead of manually constructing and calling PublicStaticCall.
[DEPRECATED] This function is deprecated. Please use the new contract API:
self.view(MyContract::at(address).my_public_static_function(...args))instead of manually constructing and callingPublicStaticCall.