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: Add walletType to event data #640

Merged
merged 6 commits into from
Jul 18, 2024

Conversation

brendan-defi
Copy link
Collaborator

What changed? Why?

  • Added walletType to logEvent eventData schema
  • Implemented walletType data capture on wallet_connected event

Notes to reviewers

How has it been tested?

Copy link

vercel bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
base-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 10:51pm
web-base-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 10:51pm

@@ -32,6 +32,7 @@ export const CustomConnectButton = ({ className }) => {
action: ActionType.change,
context: 'navbar',
address,
walletType: connector?.name.toLowerCase().replace(/[ \-\/\.]/g, '_'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: this could be a function so that we don't have the same logic (.toLowerCase().replace(/[ \-\/\.]/g, '_') twice in two files

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good callout. added a helper function in libs for this.

@zencephalon zencephalon merged commit 4a5d768 into master Jul 18, 2024
9 checks passed
@zencephalon zencephalon deleted the feat/add-wallet-connector-event branch July 18, 2024 00:59
kirkas pushed a commit that referenced this pull request Oct 21, 2024
* add walletType to event data

* changed walletType property to connector name

* removed console logs

* add walletType to base-docs wallet_connected event data

* sanitized connector name strings

* created helper function for string sanitation
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