-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong asset fingerprints #487
Comments
For example, a fingerprint of the same asset on cardanoscan is "asset1teq8p9z6zyr4xjswc6u6zk9ppuj75s5h22usgr" and on cardano-graphql is "asset1angnhnhexynlhz0v9e02v65ks9xqtah053fgv". This is wrong. PolicyId and assetName are correct. |
I just ran the query on my local instance, this is the result: {
"data": {
"transactions": [
{
"fee": 229257,
"hash": "50b49c5fed5fdc5ae5e2e23ebaeed997ec278332c767cfe7dbc33cc93984d5eb",
"includedAt": "2021-05-05T11:59:06Z",
"inputs": [
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030323336",
"assetName": "43727970746f4d6167653030323336",
"description": null,
"fingerprint": "asset1rmc67v9gxltregz0ejxj8fxcryqwsamawhuvft",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030323132",
"assetName": "43727970746f4d6167653030323132",
"description": null,
"fingerprint": "asset1teq8p9z6zyr4xjswc6u6zk9ppuj75s5h22usgr",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653035333537",
"assetName": "43727970746f4d6167653035333537",
"description": null,
"fingerprint": "asset183j5z3klm06r9a5pnahfzhn0rlp72qp4a4x2qa",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653031363537",
"assetName": "43727970746f4d6167653031363537",
"description": null,
"fingerprint": "asset1wsunn9ty4sl6my4vtl7qg0pyz4v7363v5dlehl",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653036333538",
"assetName": "43727970746f4d6167653036333538",
"description": null,
"fingerprint": "asset1emkka0jxzs4kq7rdy5czsnqp2kcc0fjclt8cue",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653037353636",
"assetName": "43727970746f4d6167653037353636",
"description": null,
"fingerprint": "asset1c3wwsxdqdxqrcmvx39nus2n02gk70lqd76g63t",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q87cwj26ftt8ucu52sw9ravms9h7tuwlzg7pyf8f0ln8xxjylayug87f0fumqe0hkm7hffgczcu68vg7fvntlntdu9esg5dupm",
"value": "2000000",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030343231",
"assetName": "43727970746f4d6167653030343231",
"description": null,
"fingerprint": "asset1qt4sz0qznctyc2avwp93dv9qkv6d97m2stjw7s",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
}
],
"outputs": [
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653037353636",
"assetName": "43727970746f4d6167653037353636",
"description": null,
"fingerprint": "asset1c3wwsxdqdxqrcmvx39nus2n02gk70lqd76g63t",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653036333538",
"assetName": "43727970746f4d6167653036333538",
"description": null,
"fingerprint": "asset1emkka0jxzs4kq7rdy5czsnqp2kcc0fjclt8cue",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653035333537",
"assetName": "43727970746f4d6167653035333537",
"description": null,
"fingerprint": "asset183j5z3klm06r9a5pnahfzhn0rlp72qp4a4x2qa",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653031363537",
"assetName": "43727970746f4d6167653031363537",
"description": null,
"fingerprint": "asset1wsunn9ty4sl6my4vtl7qg0pyz4v7363v5dlehl",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030343231",
"assetName": "43727970746f4d6167653030343231",
"description": null,
"fingerprint": "asset1qt4sz0qznctyc2avwp93dv9qkv6d97m2stjw7s",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030323336",
"assetName": "43727970746f4d6167653030323336",
"description": null,
"fingerprint": "asset1rmc67v9gxltregz0ejxj8fxcryqwsamawhuvft",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
},
{
"address": "addr1q856yfy7yfc7hv2p8prx4djyu7wmnj3v36ez8eexrupvyugzyu8ye3d6u3f30g2mn2r02rjkc9uzsz3et2ykhvgjy0kqyax9sc",
"value": "1967249",
"tokens": [
{
"quantity": "1",
"asset": {
"assetId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc43727970746f4d6167653030323132",
"assetName": "43727970746f4d6167653030323132",
"description": null,
"fingerprint": "asset1teq8p9z6zyr4xjswc6u6zk9ppuj75s5h22usgr",
"logo": null,
"name": null,
"ticker": null,
"url": null,
"policyId": "b43131f2c82825ee3d81705de0896c611f35ed38e48e33a3bdf298dc"
}
}
]
}
]
}
]
}
} This result includes |
The problem seems still to exist: |
@ray-robot @wutzebaer |
Fixes: #487 - Pass empty string instead of `undefined` when assetName is not present. - Verified using the CIP test vectors. - Also runs all tests in `api-cardano-db-hasura`, not just query tests
Fixes: #487 - Pass empty string instead of `undefined` when `assetName` is not present. - Verified using the CIP test vectors. - Removes unnecessary jest scoping in `api-cardano-db-hasura` package script
Query
But none of the asset fingerprints are equal to this data: https://cardanoscan.io/transaction/50b49c5fed5fdc5ae5e2e23ebaeed997ec278332c767cfe7dbc33cc93984d5eb
Any thoughts on that?
The text was updated successfully, but these errors were encountered: