Skip to content

Conversation

@adonesky1
Copy link
Contributor

This PR refactors how we determine whether to announce CAIP-294 wallet data:

  • Removes dependency on wallet rdns to determine announcement eligibility
  • Adds a new shouldAnnounceCaip294 flag to initializeProvider options
  • Allows clients to directly control announcement behavior rather than relying on build type detection
  • Removes the getBuildType function which is no longer needed

Instead of relying on the wallet's rdns to determine whether CAIP-294 announcements should be made (previously only "flask" builds would announce), this change gives direct control to the client. This is a more flexible approach that decouples announcement logic from wallet identification details, allowing each client to make this determination based on their own requirements.

@adonesky1 adonesky1 requested a review from a team April 28, 2025 18:32
jest.config.js Outdated
Comment on lines 48 to 51
branches: 70.0,
functions: 72.07,
lines: 70.82,
statements: 70.95,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wrestled with the tests a bit and mocking became quite frustrating. I think this is fine for now 😅

@adonesky1 adonesky1 force-pushed the ad/modify-caip294-announcement-logic branch from 239d3ac to 5e6a780 Compare April 28, 2025 18:53
@adonesky1 adonesky1 merged commit 93f9493 into main Apr 28, 2025
17 checks passed
@adonesky1 adonesky1 deleted the ad/modify-caip294-announcement-logic branch April 28, 2025 19:08
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.

3 participants