Fix mtcs-intent obligation bug

This commit is contained in:
hu55a1n1 2024-02-29 08:35:52 -08:00
parent c5056ac477
commit ecb45ce3ce

View file

@ -83,7 +83,7 @@ impl TryFrom<RawObligation> for Obligation {
Ok(Self { Ok(Self {
debtor: VerifyingKey::from_sec1_bytes(raw_obligation.debtor.as_slice()) debtor: VerifyingKey::from_sec1_bytes(raw_obligation.debtor.as_slice())
.map_err(|e| e.to_string())?, .map_err(|e| e.to_string())?,
creditor: VerifyingKey::from_sec1_bytes(raw_obligation.debtor.as_slice()) creditor: VerifyingKey::from_sec1_bytes(raw_obligation.creditor.as_slice())
.map_err(|e| e.to_string())?, .map_err(|e| e.to_string())?,
amount: raw_obligation.amount, amount: raw_obligation.amount,
salt, salt,