> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function set_contract_sync_cache_invalid

Module: `noir_aztec::oracle::contract_sync`

```rust
pub unconstrained fn set_contract_sync_cache_invalid<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.
