Lisk SDK bugfix – Inconsistent State Store return values
As I present in this issue on LiskHQ github repository, the Lisk SDK State Store currently return different values for the Transaction State Store and the Account State Store. I opened an issue and submitted a pull request that has been accepted by LiskHQ.
When using the StateStore.<entity>.cache() method one expect to have a consistent return value. When we look at the return value of TransactionStore.cache() we can see the return value is the fetched data. Now if you take a look at AccountStore.cache() method you can see the entire cached data is returned. This should be considered a bug and fixed without waiting a major release despite the breaking changes.