Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(denommetadata): Add support for providing denom-trace and creation of multiple denom-metadatas #384

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

trinitys7
Copy link
Contributor

@trinitys7 trinitys7 commented Apr 17, 2024

PR Standards

Closes #382 and #383

@trinitys7 trinitys7 marked this pull request as ready for review April 17, 2024 08:50
@trinitys7 trinitys7 requested a review from a team as a code owner April 17, 2024 08:50
danwt
danwt previously approved these changes Apr 17, 2024
Copy link
Contributor

@omritoptix omritoptix left a comment

Choose a reason for hiding this comment

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

@trinitys7 seems like the denom trace is gonna get generated also for non ibc denom. I suggest deducing it automatically by checking if the base starts with IBC/

@trinitys7
Copy link
Contributor Author

trinitys7 commented Apr 18, 2024

@omritoptix I set a checking path here, if the path is empty, then it's not an IBC denom

@trinitys7 trinitys7 changed the title feat: set denom trace while create denom metadata feat: refactor denommetadata module Apr 19, 2024
@@ -312,7 +309,7 @@
app.GetSubspace(authtypes.ModuleName),
authtypes.ProtoBaseAccount,
maccPerms,
sdk.Bech32PrefixAccAddr, //Bech32MainPrefix
sdk.Bech32PrefixAccAddr, // Bech32MainPrefix

Check warning

Code scanning / CodeQL

Directly using the bech32 constants Warning test

Directly using the bech32 constants instead of the configuration values
@omritoptix omritoptix changed the title feat: refactor denommetadata module feat(denommetadata): Add support for providing denom-trace and creation of multiple denom-metadatas Apr 19, 2024
@omritoptix omritoptix merged commit c720640 into main Apr 19, 2024
6 checks passed
@omritoptix omritoptix deleted the trinity/set-denom-trace branch April 19, 2024 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.

registering denom-metadata doesn't register the denom trace
3 participants