Skip to content

Add pub to xcm::v4::PalletInfo#4976

Merged
ggwpez merged 6 commits intoparitytech:masterfrom
JuaniRios:pallet-info-pub
Jul 18, 2024
Merged

Add pub to xcm::v4::PalletInfo#4976
ggwpez merged 6 commits intoparitytech:masterfrom
JuaniRios:pallet-info-pub

Conversation

@JuaniRios
Copy link
Copy Markdown
Contributor

@JuaniRios JuaniRios commented Jul 8, 2024

v3 PalletInfo had the fields public, but not v4. Any reason why?
I need the PalletInfo fields public so I can read the values and do some logic based on that at Polimec
@franciscoaguirre

If this could be backported would be highly appreciated 🙏🏻

@JuaniRios JuaniRios requested a review from a team as a code owner July 8, 2024 15:33
Copy link
Copy Markdown
Contributor

@franciscoaguirre franciscoaguirre left a comment

Choose a reason for hiding this comment

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

This was clearly a misstep, let's backport it

Copy link
Copy Markdown
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

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

Needs a prdoc (see directory called prdoc)

@bkchr bkchr added the T6-XCM This PR/Issue is related to XCM. label Jul 8, 2024
@JuaniRios JuaniRios requested a review from acatangiu July 18, 2024 09:19
@JuaniRios
Copy link
Copy Markdown
Contributor Author

@acatangiu semver check failed because it thinks the change to pub is a major and not a patch. But the pub fields were the original API. Can we override the check?

@acatangiu
Copy link
Copy Markdown
Contributor

@acatangiu semver check failed because it thinks the change to pub is a major and not a patch. But the pub fields were the original API. Can we override the check?

Don't know honestly. @ggwpez @Morganamilo ?

Changing this to major bump means having to major bump all downstream crates too for no real reason/benefit..

Copy link
Copy Markdown
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.

CI seems to be wrong here - this does indeed not look like a major change to me.
Running the semver-check CLI locally confirms this.

acatangiu and others added 2 commits July 18, 2024 19:34
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez enabled auto-merge July 18, 2024 16:46
@ggwpez ggwpez added this pull request to the merge queue Jul 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 18, 2024
@ggwpez ggwpez added this pull request to the merge queue Jul 18, 2024
Merged via the queue into paritytech:master with commit ad9804f Jul 18, 2024
franciscoaguirre pushed a commit that referenced this pull request Jul 31, 2024
v3 PalletInfo had the fields public, but not v4. Any reason why?
I need the PalletInfo fields public so I can read the values and do some
logic based on that at Polimec
@franciscoaguirre 

If this could be backported would be highly appreciated 🙏🏻

---------

Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
v3 PalletInfo had the fields public, but not v4. Any reason why?
I need the PalletInfo fields public so I can read the values and do some
logic based on that at Polimec
@franciscoaguirre 

If this could be backported would be highly appreciated 🙏🏻

---------

Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
EgorPopelyaev pushed a commit that referenced this pull request Aug 15, 2024
Backporting #4976 to
version 1.14.0.

The fields in `PalletInfo` were not `pub` in XCMv4 when they were for
XCMv3.

---------

Co-authored-by: Juan Ignacio Rios <54085674+JuaniRios@users.noreply.github.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T6-XCM This PR/Issue is related to XCM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants