{"record":{"id":"1e7b7e5ad169362d","repo":"nautechsystems/nautilus_trader","slug":"deployment-manifest-contains-an-invalid-code-hash","errorCode":null,"errorMessage":"Deployment manifest contains an invalid code hash","messagePattern":"Deployment manifest contains an invalid code hash","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/adapters/blockchain/src/rpc/verification.rs","lineNumber":1272,"sourceCode":"        \"Deployment manifest digest does not match its canonical content\"\n    );\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            );","sourceCodeStart":1254,"sourceCodeEnd":1290,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/blockchain/src/rpc/verification.rs#L1254-L1290","documentation":"A contract entry in the deployment manifest carries a code_hash that is not a valid B256 hash string; the manifest cannot be verified against on-chain bytecode because the expected hash is unparseable.","triggerScenarios":"Thrown at crates/adapters/blockchain/src/rpc/verification.rs:1272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the malformed code hash in the manifest","Recompute runtime code hashes from the deployed bytecode"],"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"}