Struct PublicCall
pub struct PublicCall<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> PublicCall<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 call(self, context: PublicContext) -> T
where
T: Deserialize
pub fn enqueue(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.enqueue(MyContract::at(address).my_public_function(...args))
instead of manually constructing and calling PublicCall.
pub fn enqueue_incognito(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.enqueue_incognito(MyContract::at(address).my_public_function(...args))
instead of manually constructing and calling PublicCall.
pub fn set_as_teardown(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.set_as_teardown(MyContract::at(address).my_public_function(...args))
instead of manually constructing and setting the teardown function PublicCall.
pub fn set_as_teardown_incognito(self, context: &mut PrivateContext)
[DEPRECATED]
This function is deprecated. Please use the new contract API:
self.set_as_teardown_incognito(MyContract::at(address).my_public_function(...args))
instead of manually constructing and setting the teardown function PublicCall.
[DEPRECATED] This function is deprecated. Please use the new contract API:
self.call(MyContract::at(address).my_public_function(...args))instead of manually constructing and callingPublicCall.