From 999914f42baf6dea1d8a910f5d736b5174fcd97c Mon Sep 17 00:00:00 2001 From: wanyvic Date: Sun, 17 Mar 2024 01:43:02 +0800 Subject: [PATCH] fix: BRC20 Transfer check failed. --- src/okx/protocol/brc20/msg_resolver.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/okx/protocol/brc20/msg_resolver.rs b/src/okx/protocol/brc20/msg_resolver.rs index 1d086de09d..0c39b14055 100644 --- a/src/okx/protocol/brc20/msg_resolver.rs +++ b/src/okx/protocol/brc20/msg_resolver.rs @@ -49,6 +49,10 @@ impl Message { let Some(transfer_info) = transfer_assets_cache.get(&op.old_satpoint.store()) else { return Ok(None); }; + // If the inscription_id of the transfer operation is different from the inscription_id of the transferable log, it is invalid. + if transfer_info.inscription_id != op.inscription_id { + return Ok(None); + } Operation::Transfer(Transfer { tick: transfer_info.tick.as_str().to_string(), amount: transfer_info.amount.to_string(),