Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update 'archwayd q txs' command arguments to archwayd v9.0.0 #3

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/faucet/cosmosfaucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Loading