Closed AurevoirXavier closed 1 year ago
Weird, the type is simple -
{"id":"u16","value":"u128","startTime":"u128","expiredTime":"u128","inUse":"bool"}
(we get this from console.log(api.createType('DarwiniaDepositDeposit').toRawType())
in the JS console on the apps UI)
Since it is simple enough, the length of a single entry should be
2 (u16) + 16 (u128) + 16 (u128) + 16 (u128) + 1 (bool) = 51 bytes
(The missing byte is the length prefix, ie 4 >> 2 = 1 - there is 1 entry)
In this case, the state seems incorrect. One entry of this type should be 51 bytes, with the length received we only go 36 bytes. So it cannot decode that into the above format.
It is possibly a missed migration.
Thanks! We did miss a migration.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
Reproduce steps:
accountMigration::deposits