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

Replace T::AccountId with <T::Lookup as StaticLookup>::Source #11670

Merged
merged 23 commits into from
Aug 18, 2022

Conversation

Doordashcon
Copy link
Contributor

@Doordashcon Doordashcon commented Jun 15, 2022

Fixes #6042

polkadot address: 12zsKEDVcHpKEWb99iFt3xrTCQQXZMu477nJQsTBBrof5k2h

@kianenigma kianenigma changed the title Ddc cdc t1 Replace T::AccountId with <T::Lookup as StaticLookup>::Source Jun 15, 2022
@Doordashcon Doordashcon marked this pull request as ready for review June 17, 2022 15:56
@Doordashcon
Copy link
Contributor Author

cc @kianenigma

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, I wonder if anyone has an idea to reduce the clutter a bit?

@Doordashcon
Copy link
Contributor Author

Overall looks good, I wonder if anyone has an idea to reduce the clutter a bit?

cc @gilescope

@gilescope
Copy link
Contributor

Could be a good case for using type alias? Maybe called AccoundIdLookup or some such?

@Doordashcon
Copy link
Contributor Author

Could be a good case for using type alias? Maybe called AccoundIdLookup or some such?

Sounds good, If this works @kianenigma I'll go right ahead and implement it.

@kianenigma
Copy link
Contributor

Yeah perhaps AccountIdLookupOf<T>.

@Doordashcon Doordashcon requested a review from athei as a code owner July 12, 2022 13:21
@kianenigma kianenigma added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Jul 13, 2022
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see this finally closed.

@kianenigma
Copy link
Contributor

CI and git conflicts need to go away though.

@xlc
Copy link
Contributor

xlc commented Aug 4, 2022

This needs label E6-transactionversion

@Doordashcon
Copy link
Contributor Author

Does this PR need any more attention apart from the conflicts?

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Just one case where pallet-unique::set_price still uses <T::Lookup as StaticLookup>::Source.

frame/staking/src/benchmarking.rs Outdated Show resolved Hide resolved
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
Copy link
Member

ggwpez commented Aug 18, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 22b678f into paritytech:master Aug 18, 2022
@shawntabrizi
Copy link
Member

/tip medium

@substrate-tip-bot
Copy link

@shawntabrizi A medium tip was successfully submitted for Doordashcon (12zsKEDVcHpKEWb99iFt3xrTCQQXZMu477nJQsTBBrof5k2h on polkadot).

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

@Doordashcon
Copy link
Contributor Author

Thanks for the tip!

ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…ritytech#11670)

* initial

* update

* update

* update

* cargo fmt

* update

* update benchmarks

* AccountIdLookupOf<T>

* cargo fmt

* fix conflits

* cargo fmt

* update

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
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. C1-low PR touches the given topic and has a low impact on builders. D2-breaksapi D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

T::AccountId used over <T::Lookup as StaticLookup>::Source in dispatchable calls
7 participants