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

chore: refactor magic strings #52

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Dec 17, 2023

Description

  • Refactors magic strings so they can be used in Notify Server test cases.
  • Fixes that CI doesn't build the cacao feature.

How Has This Been Tested?

Not tested

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@chris13524 chris13524 requested a review from heilhead December 17, 2023 00:29
@chris13524 chris13524 self-assigned this Dec 17, 2023
Cargo.toml Outdated
@@ -20,7 +20,7 @@ rpc = ["dep:relay_rpc"]

[dependencies]
relay_client = { path = "./relay_client", optional = true }
relay_rpc = { path = "./relay_rpc", optional = true }
relay_rpc = { path = "./relay_rpc", optional = true, features = ["cacao"] }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we want optional features to be on by default?

We should probably get rid of the root crate altogether, as it doesn't make sense to use it most of the time. It only makes configuring features harder.

Copy link
Member Author

@chris13524 chris13524 Dec 17, 2023

Choose a reason for hiding this comment

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

just build wasn't building this feature/module so I wasn't able to test it and my IDE wasn't triggering on errors. So this seemed to fix that. I thought this affected CI as well, but looks like cargo build --workspace --all-features will check this (as CI is configured to).

Going to revert to avoid confusion as CI is already catching any potential issues.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why we have the root crate like this, it doesn't seem like we use walletconnect_sdk anywhere. Maybe it's for the examples?

@chris13524 chris13524 merged commit 0e8b36a into main Dec 20, 2023
8 checks passed
@chris13524 chris13524 deleted the chore/refactor-magic-strings branch December 20, 2023 01:45
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