substrate icon indicating copy to clipboard operation
substrate copied to clipboard

implemented `contains_prefix` for StorageDoubleMap and StorageNMap

Open muraca opened this issue 3 years ago • 1 comments

In both StorageDoubleMap and StorageNMap is possible to delete or iterate on entries over a certain prefix, but there's no easy and optimized way of checking if at least one of those entries exists.

If you think I should add tests for StorageNMaps and point me where to add them, I'll be happy to do it.

muraca avatar Jan 24 '23 16:01 muraca

User @muraca, please sign the CLA here.

cla-bot-2021[bot] avatar Jan 24 '23 16:01 cla-bot-2021[bot]

/tip small

shawntabrizi avatar Jan 28 '23 00:01 shawntabrizi

@shawntabrizi A small tip was successfully submitted for muraca (12poSUQPtcF1HUPQGY3zZu2P8emuW9YnsPduA4XG3oCEfJVp on polkadot).

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips tip

substrate-tip-bot[bot] avatar Jan 28 '23 00:01 substrate-tip-bot[bot]

Okay thanks! The CI failure is unrelated.

ggwpez avatar Jan 30 '23 13:01 ggwpez

Any updates? Is it going to be merged?

muraca avatar Feb 01 '23 12:02 muraca

bot merge

ggwpez avatar Feb 01 '23 16:02 ggwpez

Waiting for commit status.

Merge cancelled due to error. Error: Statuses failed for f24a0ed7a4df67eee594a3bb6ef1c577d1507082

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/substrate-developer-newsletter-february-2023-notable-updates-for-frame-devs-new-deep-dives-released-calling-builders-to-apply-to-rfps-and-bounties/2137/1

Polkadot-Forum avatar Feb 24 '23 16:02 Polkadot-Forum