Upgrade reputation enum
brenzi opened this issue · comments
brenzi commented
For encointer pallets >= 6.1.0 the enum for reputation has changed
See: encointer/pallets#373
As deployed on gesell runtime v31 already: currently rep fetching fails
app must support both storage versions for smooth transition
clangenb commented
hmm, ok, this needs a little bit of conceptual work to ensure that the app can handle both, the pre- and post 6.1.0, types. I would probably suggest something along the line:
- We migrate the store to the new reputation version V1
- based on the spec_version, we either fetch reputation v0 or V1. If it is V0, we will transform the type on the app site to V1 and put the V1 version into the store.
This will ensure that we have a consistent app store state, before and after the runtime has actually migrated.