Closed laurogripa closed 9 months ago
try removing - MemberCount
from $removePrefix. Maybe it's triggering some weird behaviour. $removePrefix:
should be used to clear maps
@ermalkaleci unfortunately I've already tried that, same problem
seems like a bug encoding/decoding primitives
@laurogripa use encoded value for now until we fix it
Society:
MemberCount: 0x02000000
@laurogripa use encoded value for now until we fix it
Society: MemberCount: 0x02000000
Perfect 👌 Thanks!
seems like a bug encoding/decoding primitives
If you point me to the files responsible for the encoding/decoding I can take a look. I would love to try and contribute to the codebase :)
this is the code converts the config to raw values. you can start with some tests to reproduce the issue
I'm trying to change the value of this storage item: https://github.com/paritytech/substrate/blob/308e6464204d855f18ad0bfd931148cdb2b5dfea/frame/society/src/lib.rs#L683-L685
This is my storage section in the configuration file:
Everything works completely fine, except for the MemberCount, it's yielding
33554432
instead of2
. Seems like a binary conversion error, or am I doing something wrong? Any suggestions?EDIT: adding screenshot to complement the information