Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lisicky committed Aug 2, 2024
1 parent 9bbb7dc commit b765c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/tests/serialization/certificates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ fn stake_deregistration_getter_test() {
let cert = StakeDeregistration::new(
&Credential::from_keyhash(&fake_key_hash(1))
);
let cert_wrapped = Certificate::new_unreg_cert(&cert).unwrap();
let cert_wrapped = Certificate::new_stake_deregistration(&cert);
to_from_test!(StakeDeregistration, cert, cert_wrapped);
assert_eq!(cert, cert_wrapped.as_stake_deregistration().unwrap());
assert_eq!(None, cert_wrapped.as_unreg_cert());
Expand Down

0 comments on commit b765c78

Please sign in to comment.