Skip to content

Commit 5e2cb29

Browse files
committed
fix: transactions query
1 parent 5c4541c commit 5e2cb29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/storage/clickhouse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func createContractAddressClause(table, contractAddress string) string {
678678

679679
func createWalletAddressClause(table, walletAddress string) string {
680680
walletAddress = strings.ToLower(walletAddress)
681-
if table != "transactions" {
681+
if table != "transactions" || walletAddress == "" {
682682
return ""
683683
}
684684
return fmt.Sprintf("(from_address = '%s' OR to_address = '%s')", walletAddress, walletAddress)

0 commit comments

Comments
 (0)