From 48331d46b51664b9007e252890d12c19bacaacd1 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Thu, 21 Mar 2024 22:31:30 +0100 Subject: [PATCH] f --- .../erc20_payment_lib_common/src/db/ops/chain_transfer_ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/erc20_payment_lib_common/src/db/ops/chain_transfer_ops.rs b/crates/erc20_payment_lib_common/src/db/ops/chain_transfer_ops.rs index a3c7fd18..41f914d3 100644 --- a/crates/erc20_payment_lib_common/src/db/ops/chain_transfer_ops.rs +++ b/crates/erc20_payment_lib_common/src/db/ops/chain_transfer_ops.rs @@ -60,7 +60,7 @@ pub async fn get_all_chain_transfers_by_receiver_ext( ) -> Result, sqlx::Error> { let limit = limit.unwrap_or(i64::MAX); let rows = sqlx::query_as::<_, ChainTransferDbObjExt>( - r"SELECT ct.*, cx.tx_hash, cx.block_number, cx.to_addr FROM chain_transfer as ct JOIN chain_tx as cx ON ct.chain_tx_id = cx.id WHERE ct.chain_id = $1 AND ct.blockchain_date >= $2 AND ct.blockchain_date <= $3 AND ct.receiver_addr = $4 ORDER by id DESC LIMIT $5", + r"SELECT ct.*, cx.tx_hash, cx.block_number, cx.to_addr, cx.from_addr as caller_addr FROM chain_transfer as ct JOIN chain_tx as cx ON ct.chain_tx_id = cx.id WHERE ct.chain_id = $1 AND ct.blockchain_date >= $2 AND ct.blockchain_date <= $3 AND ct.receiver_addr = $4 ORDER by id DESC LIMIT $5", ) .bind(chain_id) .bind(from)