mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-20 06:05:09 +01:00
refactor: Add state check before deleting proofs to prevent removing spent proofs
This commit is contained in:
committed by
thesimplekid
parent
c6200331cf
commit
d41d3a7c94
@@ -31,4 +31,10 @@ pub enum Error {
|
||||
/// Unknown Quote
|
||||
#[error("Unknown Quote")]
|
||||
UnknownQuote,
|
||||
/// Attempt to remove spent proof
|
||||
#[error("Attempt to remove spent proof")]
|
||||
AttemptRemoveSpentProof,
|
||||
/// Attempt to update state of spent proof
|
||||
#[error("Attempt to update state of spent proof")]
|
||||
AttemptUpdateSpentProof,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user