Struct PrivateStaticCall
pub struct PrivateStaticCall<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> PrivateStaticCall<M, N, T>
pub fn new(
target_contract: AztecAddress,
selector: FunctionSelector,
name: str<M>,
args: [Field; N],
) -> Self
pub fn view(self, context: &mut PrivateContext) -> T
where
T: Deserialize
[DEPRECATED] This function is deprecated. Please use the new contract API:
self.view(MyContract::at(address).my_private_static_function(...args))instead of manually constructing and callingPrivateCall.