From 23eaedf618d8d36740298bd2e5eeb75985f75ef9 Mon Sep 17 00:00:00 2001 From: Shahbaz Nazir Date: Thu, 12 Sep 2024 22:37:20 +0500 Subject: [PATCH] update 'archwayd q txs' command arguments to v9 --- pkg/faucet/cosmosfaucet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/faucet/cosmosfaucet.go b/pkg/faucet/cosmosfaucet.go index 1ca9c9c..c066f53 100644 --- a/pkg/faucet/cosmosfaucet.go +++ b/pkg/faucet/cosmosfaucet.go @@ -78,8 +78,8 @@ func (f Faucet) ValidateRequest(req TransferRequest) error { // TotalTransferredAmount returns the total transferred amount from faucet account to toAccountAddress. func (f Faucet) TotalTransferredAmount(req TransferRequest) (coinsTransferred map[string]sdkmath.Int, err error) { //TODO: Add pagination support if there are more than 1 page of transactions - command := []string{"q", "txs", "--events", - "message.sender=" + f.faucetAccountAddress + "&transfer.recipient=" + req.AccountAddress, + command := []string{"q", "txs", "--query", + fmt.Sprintf("message.sender='%s' AND transfer.recipient='%s'", f.faucetAccountAddress, req.AccountAddress), "--page", "1", "--limit", "50", "--node", f.AppNode, "--output", "json", "--chain-id", f.AppChainID}