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

# Function assert_contract_was_not_initialized_by

Module: `noir_aztec::history::deployment`

```rust
pub fn assert_contract_was_not_initialized_by(
    block_header: BlockHeader,
    contract_address: AztecAddress,
    init_hash: Field,
)
```

Asserts that a contract was not initialized by the given block.

`init_hash` is the contract's initialization hash, obtainable via [`get_contract_instance`](/aztec-nr-api/v6.0.0/noir_aztec/oracle/get_contract_instance/fn.get_contract_instance.md).
