Skip to content

Commit d5f9756

Browse files
mpizenbergrvcas
authored andcommitted
Re-unsupport the old stake registration cert
1 parent 336a1c8 commit d5f9756

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/uplc/src/tx/script_context.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ pub fn find_script(
874874
.ok_or(Error::MissingScriptForRedeemer)
875875
.and_then(|cert| match cert {
876876
Certificate::StakeDeregistration(stake_credential)
877-
| Certificate::StakeRegistration(stake_credential)
878877
| Certificate::Reg(stake_credential, _)
879878
| Certificate::UnReg(stake_credential, _)
880879
| Certificate::VoteDeleg(stake_credential, _)
@@ -891,9 +890,9 @@ pub fn find_script(
891890
StakeCredential::ScriptHash(hash) => Ok(hash),
892891
_ => Err(Error::NonScriptStakeCredential),
893892
},
894-
Certificate::PoolRetirement { .. } | Certificate::PoolRegistration { .. } => {
895-
Err(Error::UnsupportedCertificateType)
896-
}
893+
Certificate::StakeRegistration { .. }
894+
| Certificate::PoolRetirement { .. }
895+
| Certificate::PoolRegistration { .. } => Err(Error::UnsupportedCertificateType),
897896
})
898897
.and_then(lookup_script),
899898

0 commit comments

Comments
 (0)