Skip to content
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

getnep5transfers shows nothing in received although there should be something #1215

Closed
roman-khimov opened this issue Jul 19, 2020 · 2 comments · Fixed by #1217
Closed

getnep5transfers shows nothing in received although there should be something #1215

roman-khimov opened this issue Jul 19, 2020 · 2 comments · Fixed by #1217
Assignees
Labels
bug Something isn't working
Milestone

Comments

@roman-khimov
Copy link
Member

$ curl -d '{"jsonrpc": "2.0", "method": "getnep5transfers", "params": ["AKinx3r8YPQRxS6WyLEGEQvcNNAEkto3Ek"], "id": 1}' https://rpc4.go.nspcc.ru:10331 | json_pp
{
   "jsonrpc" : "2.0",
   "id" : 1,
   "result" : {
      "received" : [],
      "sent" : [
         {
            "block_index" : 5791359,
            "transfer_notify_index" : 0,
            "timestamp" : 1593621641,
            "tx_hash" : "0xbd8a55734664f4ac7ed220e7b47511de2040ebefda9d973e0cee07de3fa98e48",
            "asset_hash" : "0x53b7577befb37d4d3b95a02f60f5da8933ab5f04",
            "transfer_address" : "Ack4DSNYjFqQcgkAVCyiotCHVLkNdkLk5Y",
            "amount" : "0.00150000"
         },
         {
            "transfer_address" : "ATAiwLv2XQEyDXFF6zHCVKHtKkAT7ksQMT",
            "amount" : "2.99850000",
            "timestamp" : 1593621641,
            "transfer_notify_index" : 0,
            "block_index" : 5791359,
            "tx_hash" : "0xbd8a55734664f4ac7ed220e7b47511de2040ebefda9d973e0cee07de3fa98e48",
            "asset_hash" : "0x53b7577befb37d4d3b95a02f60f5da8933ab5f04"
         },
         {
            "asset_hash" : "0x53b7577befb37d4d3b95a02f60f5da8933ab5f04",
            "tx_hash" : "0x70e644ab86780aa9ba63ee07933a7deaba81efac3918e402964cb38dce800f9a",
            "transfer_notify_index" : 0,
            "block_index" : 5800383,
            "timestamp" : 1593777377,
            "amount" : "1",
            "transfer_address" : "AFwYT3HDAwkTneE8JytrCG1MWAFaqBUmnr"
         },
         {
            "tx_hash" : "0xcdd46a0acbcf9299e44fcc029f35fe5eacb0bfec6518cd3dce85503048bc2171",
            "asset_hash" : "0x53b7577befb37d4d3b95a02f60f5da8933ab5f04",
            "transfer_notify_index" : 0,
            "block_index" : 5800505,
            "timestamp" : 1593779445,
            "amount" : "5",
            "transfer_address" : "AFwYT3HDAwkTneE8JytrCG1MWAFaqBUmnr"
         }
      ],
      "address" : "AKinx3r8YPQRxS6WyLEGEQvcNNAEkto3Ek"
   }
}

So there is nothing in received although there should be something, otherwise how could it send anything?

@roman-khimov roman-khimov added the bug Something isn't working label Jul 19, 2020
@roman-khimov roman-khimov added this to the v0.76.3 milestone Jul 19, 2020
@fyrchik
Copy link
Contributor

fyrchik commented Jul 21, 2020

There are received transfers on neoscan: https://neoscan.io/address/AKinx3r8YPQRxS6WyLEGEQvcNNAEkto3Ek
However the same token was received on another asset: tx 08ceeba9dca38946e5656e9143087d77a369829f1f58511525e7a167bdc1b325 invokes 1e892bd588ea4ab409b3a93d3049d6115c6727f3, but next transfers of NNN token use 53b7577befb37d4d3b95a02f60f5da8933ab5f04. So this can be related to contract migration.

Funny enough, neo-tracker.io continues to show transfers for the old contract. E.g. this tx 0884e123ba07c368448b6e48498221e80dd589602ac4b0991a439f5761d187eb, even though it is in FAULT state on both C# and Go nodes.

@fyrchik
Copy link
Contributor

fyrchik commented Jul 21, 2020

Even though we have transfer log for migrated contract, we invoke it's decimals method to find the correct way of displaying values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants