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(core): Chain impls and refactoring #1909

Merged
merged 4 commits into from Nov 30, 2022
Merged

Conversation

DaniPopes
Copy link
Collaborator

Motivation

should not use u32 in conversions when Chain is a u64

Solution

split into commits

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@DaniPopes
Copy link
Collaborator Author

what do you think about using num_enum for number conversions and strum for also the Display impl, as far as I can tell they'd do the same thing for those and then we don't have to update them manually @gakonst @mattsse

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -271,7 +119,7 @@ impl fmt::Display for Chain {
Chain::AuroraTestnet => "aurora-testnet",
};

write!(formatter, "{chain}")
f.pad(chain)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this makes sure flags are respected

@gakonst gakonst merged commit 866d305 into gakonst:master Nov 30, 2022
@DaniPopes DaniPopes deleted the feat/chains branch January 27, 2023 17:01
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.

None yet

3 participants