From c674237a272344db67570fcdff7acafbb94f118c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 11 Mar 2023 07:17:58 +0800 Subject: [PATCH] fix tx query issue --- src/libs/fetch.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index e40090fa..0c8e6ca3 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -131,7 +131,11 @@ export default class ChainFetch { } async getTxsBySender(sender) { - return this.get(`/cosmos/tx/v1beta1/txs?events=message.sender='${sender}'&pagination.reverse=true&order_by=ORDER_BY_DESC`) + return this.get(`/cosmos/tx/v1beta1/txs?events=message.sender='${sender}'&pagination.reverse=true`) + } + + async getNFTTxsBySender(sender) { + return this.get(`/cosmos/tx/v1beta1/txs?events=ibc_nft_transfer.sender='${sender}'&pagination.reverse=true`) } async getTxsByRecipient(recipient) {