diff --git a/verification/src/transaction_verifier.rs b/verification/src/transaction_verifier.rs index 11214f583f..309fffb91f 100644 --- a/verification/src/transaction_verifier.rs +++ b/verification/src/transaction_verifier.rs @@ -585,10 +585,16 @@ impl CapacityVerifier { .resolved_inputs .iter() .any(|cell_meta| { - cell_uses_dao_type_script( - &cell_meta.cell_output, - self.dao_type_hash.as_ref().expect("No dao system cell"), - ) + cell_meta + .cell_output + .type_() + .to_opt() + .map(|t| { + Into::::into(t.hash_type()) == Into::::into(ScriptHashType::Type) + && &t.code_hash() + == self.dao_type_hash.as_ref().expect("No dao system cell") + }) + .unwrap_or(false) }) } }