Skip to content

fix: Fixes #157 prevent crash if polkadot.js ext includes evm acct -M11#158

Merged
poppyseedDev merged 1 commit intoLasticXYZ:mainfrom
ltfschoen:luke/evm
May 21, 2024
Merged

fix: Fixes #157 prevent crash if polkadot.js ext includes evm acct -M11#158
poppyseedDev merged 1 commit intoLasticXYZ:mainfrom
ltfschoen:luke/evm

Conversation

@ltfschoen
Copy link
Contributor

@ltfschoen ltfschoen commented Apr 19, 2024

Instead of crashing when clicking to connect Polkadot.js Extension and it includes an EVM address, and instead of just ignoring it by returning an empty <div></div> this PR proposes to still list the EVM address but prevent the user from clicking in in the account list, and highlight it in red.

A better alternative could be to not use AiOutlineMeh, and replace lines 142-154 with just a return (<div></div>)

Closes #157

@vercel
Copy link

vercel bot commented Apr 19, 2024

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

Name Status Preview Comments Updated (UTC)
lastic-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 9:10am

@poppyseedDev
Copy link
Contributor

Sorry that this took so long to test, but it turns out polkadot js extension doesn't allow you to add your an evm account so easily, what I had to do to make it work is to create an account on moonriver export it and then import it on polkadot js.

But the PR works well:

Screenshot 2024-05-22 at 01 32 19

Let me know your wallet address so we can send you 50$ in DOT or BTC :)

@poppyseedDev poppyseedDev merged commit 553ab2d into LasticXYZ:main May 21, 2024
@poppyseedDev poppyseedDev changed the title fix: Fixes #157 prevent crash if polkadot.js ext includes evm acct fix: Fixes #157 prevent crash if polkadot.js ext includes evm acct -M11 Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[BUG] Error: Expected a valid key to convert, with length 1, 2, 4, 8, 32, 33

2 participants