-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
infrastructureIssues related to the Infrastructure TeamIssues related to the Infrastructure Team
Description
Bug description
If a tx contains unwrapped objects, they're shown in the effects, but not in the objectChanges list
Context
Components (select all that apply):
-
iota-indexer -
iota-json-rpc -
iota-graphql-rpc - Other: __________
Issue type (select one):
- JSON-RPC API bug (failing request, unexpected response, etc.)
- Crate bug (logic bug, runtime error, performance issue, etc.)
Version & Environment
Specify exactly which version, commit, or branch you're using, and where you observed the issue:
- Version (tag), commit hash, or branch:
- Environment (Mainnet, Testnet, Devnet, Local, other, etc.): Testnet (but basically all of them)
Steps to reproduce the bug
curl https://api.testnet.iota.cafe \
--header 'content-type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "iota_getTransactionBlock",
"params": {
"digest": "6nQ7pwn2vwU296AnrNAkgRZsnht4gTcrTnFKfPVer1y4",
"options": {
"showEffects": true,
"showObjectChanges": true
}
}
}' | jq .
in the effects
"mutated": [
{
"owner": {
"AddressOwner": "0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215"
},
"reference": {
"objectId": "0x003ff7f0e4940d94e56729949db16875806aa4b5bc816469ce7c76da2744f3a3",
"version": 6809041,
"digest": "5uHH1tyf9MjqdJmAaVn2xFuTafGhpusTWJVa6cKyRZrB"
}
},
{
"owner": {
"Shared": {
"initial_shared_version": 6809031
}
},
"reference": {
"objectId": "0xb1b2c1f2f2e33943e8fe7954fca9da40b56cd33cf89c00ac1a45f7a1b028ec11",
"version": 6809041,
"digest": "29hDC9fzh16WxRTSBje846LUnTQesiTtuM2BWBxzFejP"
}
}
],
"unwrapped": [
{
"owner": {
"AddressOwner": "0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215"
},
"reference": {
"objectId": "0x8cc24363088cfc0f7e0320456f1c2e0ace7f52ae57e9b893b8fb00a87f5ebaef",
"version": 6809041,
"digest": "8DVipYhwvBm87wfdrYLN5cjQ9JiumhySnvXP9Kydvc8F"
}
}
],missing here
"objectChanges": [
{
"type": "mutated",
"sender": "0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215",
"owner": {
"AddressOwner": "0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215"
},
"objectType": "0x2::coin::Coin<0x2::iota::IOTA>",
"objectId": "0x003ff7f0e4940d94e56729949db16875806aa4b5bc816469ce7c76da2744f3a3",
"version": "6809041",
"previousVersion": "6809040",
"digest": "5uHH1tyf9MjqdJmAaVn2xFuTafGhpusTWJVa6cKyRZrB"
},
{
"type": "mutated",
"sender": "0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215",
"owner": {
"Shared": {
"initial_shared_version": 6809031
}
},
"objectType": "0x9f6a4c3b71ada16ada9acea1cd35cb245caec0eb28a6de86bb8b6bd3e8f62197::shared_coins::SharedCoins",
"objectId": "0xb1b2c1f2f2e33943e8fe7954fca9da40b56cd33cf89c00ac1a45f7a1b028ec11",
"version": "6809041",
"previousVersion": "6809040",
"digest": "29hDC9fzh16WxRTSBje846LUnTQesiTtuM2BWBxzFejP"
}
],Expected behaviour
Unwrapped objects should also show up in the objectChanges list
Actual behaviour
Unwrapped objects don't show up
The changes in https://github.com/iotaledger/iota/pull/9534/files might fix it, but needs to be tested. I created this issue here so the indexer can be fixed first on its own without touching the explorer
Metadata
Metadata
Assignees
Labels
infrastructureIssues related to the Infrastructure TeamIssues related to the Infrastructure Team