paritytech / subxt

Interact with Substrate based nodes in Rust or WebAssembly
Other
391 stars 236 forks source link

Remove dupe storage item if we get one back, to be compatible with Smoldot + legacy RPCs #1534

Closed jsdw closed 2 months ago

jsdw commented 2 months ago

Smoldot returns the provided start_key when fetching storage items (see https://github.com/smol-dot/smoldot/issues/1692), whereas we don't expect this back from Substrate (it's badly named really; start_key does imply it will be handed back to me).

In Subxt we remove such an entry if we find it when iterating over storage entries, to avoid duplicate entries being returned.

Closes #1453, closes #1525