From 7f62296abd5a1f44d6f038624345ba1319f350f6 Mon Sep 17 00:00:00 2001 From: Andrew Kirillov Date: Mon, 3 Feb 2025 13:32:32 -0800 Subject: [PATCH] auth: server: handle_external_match: gas_sponsorship: log missing sponsorship event --- .../src/server/handle_external_match/gas_sponsorship.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auth/auth-server/src/server/handle_external_match/gas_sponsorship.rs b/auth/auth-server/src/server/handle_external_match/gas_sponsorship.rs index 5829b70..3be63a2 100644 --- a/auth/auth-server/src/server/handle_external_match/gas_sponsorship.rs +++ b/auth/auth-server/src/server/handle_external_match/gas_sponsorship.rs @@ -15,7 +15,7 @@ use http::Response; use renegade_arbitrum_client::abi::{ processAtomicMatchSettleCall, processAtomicMatchSettleWithReceiverCall, }; -use tracing::info; +use tracing::{info, warn}; use renegade_api::http::external_match::ExternalMatchResponse as RelayerExternalMatchResponse; @@ -209,6 +209,10 @@ impl Server { let amount_sponsored_with_tx = events.last().map(|(event, meta)| (event.amount, meta.transaction_hash)); + if amount_sponsored_with_tx.is_none() { + warn!("No gas sponsorship event found for nonce: {}", nonce); + } + Ok(amount_sponsored_with_tx) }