Skip to content

Commit

Permalink
Fix: recently called contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 21, 2022
1 parent c0839a2 commit 637386e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postgres/contract/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (storage *Storage) RecentlyCalled(network types.Network, offset, size int64
ColumnExpr("account.address as account__address, account.alias as account__alias").
Where("contract.network = ?", network).
Offset(int(offset)).Limit(int(size)).
OrderExpr("contract.id desc, contract.tx_count desc").
OrderExpr("contract.last_action desc, contract.tx_count desc").
Join(`LEFT JOIN "accounts" AS "account" ON "account"."id" = "contract"."account_id"`).
Select(&contracts)
return
Expand Down

0 comments on commit 637386e

Please sign in to comment.