aztec-nr - noir_aztec::oracle::contract_sync

Function invalidate_contract_sync_cache

pub unconstrained fn invalidate_contract_sync_cache<let N: u32>(
    contract_address: AztecAddress,
    scopes: BoundedVec<AztecAddress, N>,
)

Forces the PXE to re-sync the given contract for a set of scopes on the next query.

Call this after writing data (e.g. offchain messages) that the contract's sync_state function needs to discover. Without invalidation, the sync cache would skip re-running sync_state until the next block.