Hi - Just to be certain we are on the same page. I am attempting to walk through the history of an object. First I do a sui_getObject
on "0x62e58282777c47ba949b947973a04ebd401b17ff"
which produces:
{
"data": {
"has_public_transfer": false,
"fields": {
"count_accounts": "0",
"has_child_field": true,
"has_child_object_field": true,
"id": "0x62e58282777c47ba949b947973a04ebd401b17ff",
"initialized": true
},
"dataType": "moveObject",
"type": "0xe43b79b5b81bbb9dfd6203425e109b04cea2be65::base::ServiceTracker",
"type_arg": ""
},
"owner": {
"owner_type": "AddressOwner",
"owner": "0x3bcadcc8a78ec44b8765ed8a8517b82a9ee310ad"
},
"reference": {
"objectId": "0x62e58282777c47ba949b947973a04ebd401b17ff",
"version": 15,
"digest": "CbGd3IF2gcInkdzS/v0TEnWDyIBvmywylUq5mwcPaKc="
},
"storageRebate": 14,
"previousTransaction": "2soi3dxM67mZLsxRFiAiweMynhKw49ugwKhVtE9oUYFm"
}
Taking the above preivousTransaction
I use it as parameter to sui_getTransaction
. In the result of this call I expect to see an earlier version somewhere. However; all references:
In effects->events
:
{
"mutateObject": {
"packageId": "0xe43b79b5b81bbb9dfd6203425e109b04cea2be65",
"transactionModule": "base",
"sender": "0x3bcadcc8a78ec44b8765ed8a8517b82a9ee310ad",
"objectType": "0xe43b79b5b81bbb9dfd6203425e109b04cea2be65::base::ServiceTracker",
"objectId": "0x62e58282777c47ba949b947973a04ebd401b17ff",
"version": 15
}
},
Note that it is still version 15
as is the current version. I would have thought this would be 14 which was before the transaction changes.
I also find it in the tx results of the effect->mutated info:
"mutated": [
{
"reference": {
"objectId": "0x62e58282777c47ba949b947973a04ebd401b17ff",
"version": 15,
"digest": "CbGd3IF2gcInkdzS/v0TEnWDyIBvmywylUq5mwcPaKc="
},
"owner": "0x3bcadcc8a78ec44b8765ed8a8517b82a9ee310ad"
}
]
Still at version 15.
Had there been a version difference, I would have used the earlier version to do a sui_tryGetPastObject
and repeat the process to walk back in time for an object generation trace.