Skip to content

Commit

Permalink
Use multi_asset table
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromtcosta committed Nov 30, 2021
1 parent 49d15f5 commit 572db6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/utxoDiffSincePoint.ts
Expand Up @@ -94,8 +94,9 @@ const buildSelectColumns = (type: DiffType) => {
, tx_out.value
, block.block_no as "blockNumber"
, (
select json_agg(ROW (encode("policy", 'hex'), encode("name", 'hex'), "quantity"))
select json_agg(ROW (encode(multi_asset."policy", 'hex'), encode(multi_asset."name", 'hex'), "quantity"))
from ma_tx_out
inner join multi_asset on ma_tx_out.ident = multi_asset.id
where ma_tx_out."tx_out_id" = tx_out.id
) as assets
, '${type === DiffType.OUTPUT ? "O" : "I"}' as "type"`;
Expand Down

0 comments on commit 572db6b

Please sign in to comment.