Skip to content

Commit

Permalink
fix: BRC20 Transfer check failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyvic committed Mar 31, 2024
1 parent 5b171fb commit 999914f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/okx/protocol/brc20/msg_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 999914f

Please sign in to comment.