From ecb45ce3ce47d964807cbf29f0fd9694adfd2c1c Mon Sep 17 00:00:00 2001 From: hu55a1n1 Date: Thu, 29 Feb 2024 08:35:52 -0800 Subject: [PATCH] Fix mtcs-intent obligation bug --- utils/mtcs-intent/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mtcs-intent/src/main.rs b/utils/mtcs-intent/src/main.rs index f8b5d25..b9987f9 100644 --- a/utils/mtcs-intent/src/main.rs +++ b/utils/mtcs-intent/src/main.rs @@ -83,7 +83,7 @@ impl TryFrom for Obligation { Ok(Self { debtor: VerifyingKey::from_sec1_bytes(raw_obligation.debtor.as_slice()) .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())?, amount: raw_obligation.amount, salt,