pub fn hash(&self) -> H256 {
        self.input
            .as_ref()
            .expect("Transaction must have input data")
            .hash
    }
Returns zero hash if the transaction doesn't contain input data.
core/lib/types/src/l2/mod.rs