Skip to content

Fix: Manage active wallet#848

Open
IYTEC wants to merge 11 commits into
developmentfrom
issue-831-Fix_It_should_automatically_select_any_new_wallet_you_connect
Open

Fix: Manage active wallet#848
IYTEC wants to merge 11 commits into
developmentfrom
issue-831-Fix_It_should_automatically_select_any_new_wallet_you_connect

Conversation

@IYTEC

@IYTEC IYTEC commented Oct 31, 2022

Copy link
Copy Markdown
Contributor

ℹ Overview

  • Set the newly connected wallet as active wallet
  • Remember selected wallet after refresh

📝 Related Issues

🔐 Acceptance:

  • yarn test passes

@IYTEC
IYTEC requested a review from atrefonas October 31, 2022 11:00
@vercel

vercel Bot commented Oct 31, 2022

Copy link
Copy Markdown

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

Name Status Preview Updated
algodex-react-dev ✅ Ready (Inspect) Visit Preview Oct 31, 2022 at 11:47AM (UTC)

@atrefonas

Copy link
Copy Markdown
Contributor

I don't think the wallet code is manageable right now as it is too complex and error-prone. It all needs to be switched to a useReducer to make any changes.

@atrefonas atrefonas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All the wallet code needs to be changed to a useReducer. The hooks all need to be brought into algodex-react as well. The state changes need to happen in a single location. Otherwise too risky to make any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants