Skip to content

fix(photon): prevent bundling the wildcard symbol in TxFeeExceptions with other exceptions - #352

Merged
giunatale merged 2 commits into
mainfrom
giunatale/fix/photon-txfees-wildcard
Jun 25, 2026
Merged

fix(photon): prevent bundling the wildcard symbol in TxFeeExceptions with other exceptions#352
giunatale merged 2 commits into
mainfrom
giunatale/fix/photon-txfees-wildcard

Conversation

@giunatale

Copy link
Copy Markdown
Collaborator

Having the wildcard symbol * bundled with other messages is semantically wrong and should be prevented. The wildcard should exist by itself, and up until this PR an ill-formatted assignment for TxFeeExceptions of the kind [MsgFoo, *] would silently be accepted and result in the wildcard being ignored, since the code expects it to be the first (and essentially only) entry in the list.

Note: this is a nitpick fix, it is not required for v4 and can be treated independently and scheduled to be deployed in a future update. There's no urgency nor any cause of concern. This PR is just for code correctness, and impact is marginal at best (also because we don't expect the TxFeeExceptions param to be updated any time soon)

@giunatale

Copy link
Copy Markdown
Collaborator Author

BTW, if we want a CL entry for this, I'll need to go ahead and add a new section above v4. LMK

@tbruyelle tbruyelle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes let's add a new section for the CL.

@giunatale

Copy link
Copy Markdown
Collaborator Author

Ok done @tbruyelle if it looks good I'll merge. It should be ok, but asking for confirmation just in case

@tbruyelle

Copy link
Copy Markdown
Collaborator

yeah it's good go ahead

@giunatale
giunatale merged commit 5a107a3 into main Jun 25, 2026
14 checks passed
@giunatale
giunatale deleted the giunatale/fix/photon-txfees-wildcard branch June 25, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants