Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Companion PR to substrate Rename StorageMap::exists to ::contains_key#827

Closed
apopiak wants to merge 6 commits intomasterfrom
apopiak-rename-exists-to-contains-key
Closed

Companion PR to substrate Rename StorageMap::exists to ::contains_key#827
apopiak wants to merge 6 commits intomasterfrom
apopiak-rename-exists-to-contains-key

Conversation

@apopiak
Copy link
Contributor

@apopiak apopiak commented Feb 7, 2020

fixes usages of StorageMap::exists(key) by using the new StorageMap::contains_key(key) introduced in paritytech/substrate#4847 instead.
See Issue paritytech/substrate#4839 for the motivation.

@parity-cla-bot
Copy link

It looks like @apopiak signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@apopiak
Copy link
Contributor Author

apopiak commented Feb 7, 2020

@bkchr Not sure what's up with the

error: the lock file /builds/parity/polkadot/Cargo.lock needs to be updated but --locked was passed to prevent this

message.

@NikVolf
Copy link
Contributor

NikVolf commented Feb 7, 2020

@apopiak run cargo test --all (no need to wait it is finished) and then commit Cargo.lock

@apopiak apopiak self-assigned this Feb 7, 2020
@apopiak
Copy link
Contributor Author

apopiak commented Feb 7, 2020

Also unsure how this import could not resolve 😅

 error[E0432]: unresolved import `frame_support::traits::VestingCurrency`

@bkchr
Copy link
Member

bkchr commented Feb 7, 2020

#816 this needs to be merged first.

@apopiak apopiak force-pushed the apopiak-rename-exists-to-contains-key branch from 2aa160b to 8ab4509 Compare February 10, 2020 10:03
@bkchr
Copy link
Member

bkchr commented Feb 15, 2020

Superseded by #834

@bkchr bkchr closed this Feb 15, 2020
@bkchr bkchr deleted the apopiak-rename-exists-to-contains-key branch February 15, 2020 13:52
tomusdrw added a commit that referenced this pull request Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments