baking-bad/bcdhub

Missing data when retrieving contract bigmap for tzbtc on carthagenet

Closed this issue · 0 comments

tezit commented

For carthagenet contract KT1TjdF4H8H2qzxichtEbiCwHxCRM1SVx6B7, when trying to retrieve the contents of its lone bigmap with id 1035 there are no entries from the "ledger" that match either of my two accounts which do have balances tz1QwPbZtpjJ3Jv7VJjFgs2dEcjqCFDhmzi2 with a balance of 64 and tz1LPqi4GZvbaQiMhny5dqTfA2bDXnKL3wHp with a balance of 9.

The problem is likely due to the big map entry with account tz1Wc6J5Eb6QjipdkEK8ksqjbY9ZZU7NZHkk having a null value as it seems every entry in the big map after that one is being dropped.

Side note: the data is correctly displayed in BCD at the following link https://you.better-call.dev/bigmap/carthagenet/KT1TjdF4H8H2qzxichtEbiCwHxCRM1SVx6B7/1035
(im attaching an image in case you don't get the same results from that link)
image

Below are the incorrect results from the indexer endpoint at https://api.better-call.dev/v1/contract/carthagenet/KT1TjdF4H8H2qzxichtEbiCwHxCRM1SVx6B7/bigmap/1035

[{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1ftefhcNC5EGa1vrg588fdskQRwimmPtDa""},"value":{"prim":"bytes","type":"bytes","value":"Pair 4 {}"},"key_hash":"expruLjiJuDzttj231i85sNUa65s5aFy38iRKuD7c518VMyJJ7btFA","key_string":"Pair "ledger" "tz1ftefhcNC5EGa1vrg588fdskQRwimmPtDa"","level":425862,"timestamp":"2020-05-21T22:01:31Z"},"count":7},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1NcKoGGHVeNuQ28bPxKteydkNoUCa81Ka7""},"value":{"prim":"bytes","type":"bytes","value":"Pair 23 {}"},"key_hash":"exprvJtkerYRATx5itcD1XnXteP3d1RXFHQVHbzuY2xHbXcT5rbE11","key_string":"Pair "ledger" "tz1NcKoGGHVeNuQ28bPxKteydkNoUCa81Ka7"","level":425862,"timestamp":"2020-05-21T22:01:31Z"},"count":93},{"data":{"key":{"prim":"bytes","type":"bytes","value":""totalSupply""},"value":{"prim":"bytes","type":"bytes","value":"300"},"key_hash":"exprunzteC5uyXRHbKnqJd3hUMGTWE9Gv5EtovDZHnuqu6SaGViV3N","key_string":""totalSupply"","level":425862,"timestamp":"2020-05-21T22:01:31Z"},"count":144},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1bLc9o6tZhEbmK4az21GyYZfhVf82KR4Nc""},"value":{"prim":"bytes","type":"bytes","value":"Pair 168 {}"},"key_hash":"exprtqxyJvY1F95hjpno67f3P7pDzWL3eSz3bZWeyhdeLT3TszLRgr","key_string":"Pair "ledger" "tz1bLc9o6tZhEbmK4az21GyYZfhVf82KR4Nc"","level":424316,"timestamp":"2020-05-21T05:58:03Z"},"count":60},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1cu3VZKXbTzYfHYxexXz3j559PgnTeuC44""},"value":{"prim":"bytes","type":"bytes","value":"Pair 7 {}"},"key_hash":"expruiaVKLQb4QyGjiRLFNBo73QwB8R4y1EsGytj6bkE5akKKDi7Zt","key_string":"Pair "ledger" "tz1cu3VZKXbTzYfHYxexXz3j559PgnTeuC44"","level":424138,"timestamp":"2020-05-21T04:02:51Z"},"count":7},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1WBCcuxGrKagQRCSYVg3qQvDoRMrGaMaa2""},"value":{"prim":"bytes","type":"bytes","value":"Pair 21 {}"},"key_hash":"expruKMjpfU2hPjwqHNUtPufUQddTptEuWAn98gLWBwPFkQYpaMp5X","key_string":"Pair "ledger" "tz1WBCcuxGrKagQRCSYVg3qQvDoRMrGaMaa2"","level":422733,"timestamp":"2020-05-20T12:46:27Z"},"count":72},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1MZzSFxjKKbK84XwMeDFcSn7z6n1Xhwi2F""},"value":{"prim":"bytes","type":"bytes","value":"Pair 1 {}"},"key_hash":"expruvpkvHTganSHh2uNMpSDtun9i5UtmzkLyWrFt8zQnt6tUMkN42","key_string":"Pair "ledger" "tz1MZzSFxjKKbK84XwMeDFcSn7z6n1Xhwi2F"","level":421244,"timestamp":"2020-05-19T18:25:41Z"},"count":5},{"data":{"key":{"prim":"bytes","type":"bytes","value":""totalMinted""},"value":{"prim":"bytes","type":"bytes","value":"300"},"key_hash":"expruZjFQHQebS4849zBscLP4W2GkmCYq3tngRdPa7LF8oC2zCFaz6","key_string":""totalMinted"","level":420752,"timestamp":"2020-05-19T11:52:23Z"},"count":3},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1QZspuuofoY2KnZz2sEmhwsrpvJatzifuh""},"value":{"prim":"bytes","type":"bytes","value":"Pair 1 {}"},"key_hash":"exprvQF7mmXFovqEJ3A6VF3SiXcfWPPeGvBbzdAKMkuxABaDbC71RF","key_string":"Pair "ledger" "tz1QZspuuofoY2KnZz2sEmhwsrpvJatzifuh"","level":420611,"timestamp":"2020-05-19T09:53:23Z"},"count":7},{"data":{"key":{"prim":"bytes","type":"bytes","value":"Pair "ledger" "tz1Wc6J5Eb6QjipdkEK8ksqjbY9ZZU7NZHkk""},"value":null,"key_hash":"exprvJLbixUGfmVRmv6bZneyPorMHDZ37dL9qCBf3gdbL2SGsYoHW1","key_string":"Pair "ledger" "tz1Wc6J5Eb6QjipdkEK8ksqjbY9ZZU7NZHkk"","level":413679,"timestamp":"2020-05-15T11:23:37Z"},"count":4}]