File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3030 txo .address ,
3131 sa .view AS stake_address
3232 FROM tx_out AS txo
33- LEFT JOIN stake_address ON txo .stake_address_id = sa .view
33+ LEFT JOIN stake_address AS sa ON txo .stake_address_id = sa .id
3434 WHERE id = (
3535 SELECT MAX (tx_out_id)
3636 FROM ma_tx_out
@@ -42,11 +42,11 @@ BEGIN
4242 txo .address ,
4343 sa .view AS stake_address
4444 FROM tx_out AS txo
45- INNER JOIN ma_tx_out mto ON mto .tx_out_id = tx_out .id
46- LEFT JOIN stake_address ON txo .stake_address_id = sa .view
45+ INNER JOIN ma_tx_out mto ON mto .tx_out_id = txo .id
46+ LEFT JOIN stake_address AS sa ON txo .stake_address_id = sa .id
4747 WHERE mto .ident = _asset_id
48- AND tx_out .consumed_by_tx_in_id IS NULL
49- ORDER BY tx_out .id DESC
48+ AND txo .consumed_by_tx_in_id IS NULL
49+ ORDER BY txo .id DESC
5050 LIMIT 1 ;
5151 END IF;
5252END;
You can’t perform that action at this time.
0 commit comments