Skip to content

Commit

Permalink
fix: encode 'ada' asset name to UTF8, remove decoding on assetNames
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Jan 20, 2021
1 parent 8ac4651 commit 8066957
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,22 @@ FROM epoch_stake;

CREATE VIEW "Mint" AS
SELECT
convert_from(name, 'UTF8') as "assetName",
name as "assetName",
policy as "policyId",
quantity,
tx_id
FROM ma_tx_mint;

CREATE VIEW "Token" AS
SELECT
convert_from(name, 'UTF8') as "assetName",
name as "assetName",
policy as "policyId",
quantity,
tx_out_id
FROM ma_tx_out
UNION
SELECT
'ada' as "assetName",
convert_to('ada','UTF8') as "assetName",
'\xada00000000000000000000000000000000000000000000000000000' as "policyId",
value as quantity,
id as tx_out_id
Expand Down

0 comments on commit 8066957

Please sign in to comment.