Skip to content

Commit

Permalink
Some bug fixes following Schemathesis runs against preprod and v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hodlonaut committed Nov 17, 2024
1 parent ed311fc commit 42a1cfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion files/grest/rpc/address/address_assets.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BEGIN
INNER JOIN multi_asset AS ma ON ma.id = mtx.ident
LEFT JOIN grest.asset_info_cache AS aic ON aic.asset_id = ma.id
INNER JOIN tx_out AS txo ON txo.id = mtx.tx_out_id
INNER JOIN address AS a ON a.id = tx_out.address_id
INNER JOIN address AS a ON a.id = txo.address_id
WHERE a.address = ANY(_addresses)
AND txo.consumed_by_tx_id IS NULL
GROUP BY
Expand Down
3 changes: 2 additions & 1 deletion files/grest/rpc/address/address_txs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ BEGIN
FROM (
SELECT tx_id
FROM tx_out
WHERE address = ANY (_addresses)
INNER JOIN address AS a on a.id = tx_out.address_id
WHERE a.address = ANY (_addresses)
AND tx_id >= _tx_id_min
--
UNION
Expand Down
4 changes: 2 additions & 2 deletions files/grest/rpc/address/credential_utxos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BEGIN
)
END) as assets
FROM tx_out AS txo
INNER JOIN address ON a.id = txo.address_id
INNER JOIN address AS a ON a.id = txo.address_id
INNER JOIN ma_tx_out AS mto ON mto.tx_out_id = txo.id
LEFT JOIN multi_asset AS ma ON ma.id = mto.ident
LEFT JOIN grest.asset_info_cache AS aic ON aic.asset_id = ma.id
Expand Down Expand Up @@ -86,7 +86,7 @@ BEGIN
ELSE true
END) AS is_spent
FROM tx_out
INNER JOIN address ON a.id = tx_out.address_id
INNER JOIN address AS a ON a.id = tx_out.address_id
INNER JOIN tx ON tx_out.tx_id = tx.id
LEFT JOIN stake_address AS sa ON tx_out.stake_address_id = sa.id
LEFT JOIN block AS b ON b.id = tx.block_id
Expand Down

0 comments on commit 42a1cfe

Please sign in to comment.