Skip to content

Commit 51bff68

Browse files
committed
fix(cardano-blockchain-types): cip36 payment key and nonce
Signed-off-by: bkioshn <[email protected]>
1 parent 21aa222 commit 51bff68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/cardano-blockchain-types/src/metadata/cip36/key_registration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ impl Decode<'_, ProblemReport> for Cip36KeyRegistration {
116116
.as_ref()
117117
.map(|addr| !addr.payment().is_script())
118118
.or(None);
119+
cip36_key_registration.payment_addr = shelley_addr;
119120
},
120121
Cip36KeyRegistrationKeys::Nonce => {
121-
cip36_key_registration.nonce = Some(decode_nonce(d)?);
122+
cip36_key_registration.raw_nonce = Some(decode_nonce(d)?);
122123
},
123124
Cip36KeyRegistrationKeys::Purpose => {
124125
cip36_key_registration.purpose = decode_purpose(d)?;

0 commit comments

Comments
 (0)