mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Fix tests on master (#2080)
Because of a bug in the test script, we didn't stopped CI when the main tests are failed.
This commit is contained in:
@@ -231,6 +231,11 @@ impl<H: Clone> CommittedCandidateReceipt<H> {
|
||||
pub fn hash(&self) -> CandidateHash where H: Encode {
|
||||
self.to_plain().hash()
|
||||
}
|
||||
|
||||
/// Does this committed candidate receipt corrensponds to the given [`CandidateReceipt`]?
|
||||
pub fn corresponds_to(&self, receipt: &CandidateReceipt<H>) -> bool where H: PartialEq {
|
||||
receipt.descriptor == self.descriptor && receipt.commitments_hash == self.commitments.hash()
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for CommittedCandidateReceipt {
|
||||
|
||||
Reference in New Issue
Block a user