{"record":{"id":"78b466a2cea57705","repo":"nautechsystems/nautilus_trader","slug":"manifest-code-hashes-must-be-nonzero","errorCode":null,"errorMessage":"Manifest code hashes must be nonzero","messagePattern":"Manifest code hashes must be nonzero","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/adapters/blockchain/src/rpc/verification.rs","lineNumber":1273,"sourceCode":"    );\n    anyhow::ensure!(\n        !manifest.contracts.is_empty() && !manifest.tokens.is_empty() && !manifest.pools.is_empty(),\n        \"Deployment manifest contracts, tokens, and pools are required\"\n    );\n    let mut contract_addresses = HashSet::new();\n    let mut roles = HashSet::new();\n\n    for contract in &manifest.contracts {\n        let address = Address::from_str(&contract.address)\n            .map_err(|_| anyhow::anyhow!(\"Deployment manifest contains an invalid address\"))?;\n        anyhow::ensure!(\n            contract_addresses.insert(address),\n            \"Deployment manifest contains a duplicate contract address\"\n        );\n        roles.insert(contract.role);\n        let code_hash = B256::from_str(&contract.runtime_code_hash)\n            .map_err(|_| anyhow::anyhow!(\"Deployment manifest contains an invalid code hash\"))?;\n        anyhow::ensure!(\n            code_hash != B256::ZERO,\n            \"Manifest code hashes must be nonzero\"\n        );\n        anyhow::ensure!(\n            matches!(contract.role, BlockchainContractRole::Implementation)\n                || !contract.probes.is_empty(),\n            \"Every deployed contract role requires at least one identity probe\"\n        );\n\n        if let Some(proxy) = &contract.proxy {\n            anyhow::ensure!(\n                matches!(\n                    proxy.kind.as_str(),\n                    \"eip1967_implementation\" | \"zeppelinos_implementation\"\n                ),\n                \"Proxy kind is unsupported\"\n            );\n            B256::from_str(&proxy.storage_slot)","sourceCodeStart":1255,"sourceCodeEnd":1291,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/blockchain/src/rpc/verification.rs#L1255-L1291","documentation":"A contract entry in the deployment manifest has a code_hash equal to zero; a zero hash cannot attest to any real deployed bytecode, so the manifest fails the nonzero-hash integrity check.","triggerScenarios":"Thrown at crates/adapters/blockchain/src/rpc/verification.rs:1273 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the actual keccak256 runtime code hash in the manifest"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}