You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The raw tuple doesnt work well... First of all when queried it returns None while value is clearly there as data are inserted in genesis block(link to reproducible example below)
There are at least to problems:
for raw tuple storage is recogniced to have 2 parameters of type u32 while it should be single parameter of type (u32,u32).
for similiar case where TupleWrapper is used instead, it defines single query parameter
I created repository with minimal reproducible examples that includes minimal node runtime based on substrate minimal template that defines 2 storage maps(as described above) and inserts some data into the storage automatically. It also contains bindings generated from node metadata as well as example prooving that querying data from storage map doesnt work...
The text was updated successfully, but these errors were encountered:
btw i also tried dynamic query. According to polkadot spec tuple is encoded as concatenation of inner types. and integers are encoded using little endian representation. But somehow it doesnt work as well
Seems like subxt generates wrong static types in case of using
(u32, u32)
as a key to a substrateStorageMap
given 2 similiar
StorageMaps
where one is raw tupleand the other is wrapper type
The raw tuple doesnt work well... First of all when queried it returns
None
while value is clearly there as data are inserted in genesis block(link to reproducible example below)There are at least to problems:
u32
while it should be single parameter of type(u32,u32)
.TupleWrapper
is used instead, it defines single query parameterI created repository with minimal reproducible examples that includes minimal node runtime based on substrate minimal template that defines 2 storage maps(as described above) and inserts some data into the storage automatically. It also contains bindings generated from node metadata as well as example prooving that querying data from storage map doesnt work...
The text was updated successfully, but these errors were encountered: