From e8f7476b44c109e83ffc5d809499ec762d00e5e9 Mon Sep 17 00:00:00 2001 From: Tasio Victoria Date: Wed, 17 Apr 2024 13:21:32 -0400 Subject: [PATCH] Adjust finalize-sale event --- contracts/stargaze-marketplace-v2/src/helpers.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/stargaze-marketplace-v2/src/helpers.rs b/contracts/stargaze-marketplace-v2/src/helpers.rs index 76d981df..320e4903 100644 --- a/contracts/stargaze-marketplace-v2/src/helpers.rs +++ b/contracts/stargaze-marketplace-v2/src/helpers.rs @@ -186,7 +186,8 @@ pub fn finalize_sale( let mut sale_event = Event::new("finalize-sale") .add_attribute("collection", ask.collection.to_string()) .add_attribute("token_id", ask.token_id.to_string()) - .add_attribute("sale_price", sale_price.to_string()) + .add_attribute("denom", sale_price.denom.to_string()) + .add_attribute("price", sale_price.amount.to_string()) .add_attribute("seller_recipient", seller_recipient.to_string()) .add_attribute("nft_recipient", nft_recipient.to_string()) .add_attribute("ask", ask.id.to_string()); @@ -202,7 +203,7 @@ pub fn finalize_sale( } for payment in nft_sale_processor.payments.iter() { - sale_event = sale_event.add_attribute(&payment.label, payment.funds.to_string()); + sale_event = sale_event.add_attribute(&payment.label, payment.funds.amount.to_string()); } response = response.add_event(sale_event);