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

Retain ETH address in details page for accounts with no EVM transactions #1564

Merged
merged 11 commits into from
Oct 17, 2024

Conversation

buberdds
Copy link
Contributor

@buberdds buberdds commented Oct 7, 2024

Issue raised by Tadej (while using staker dApp as far as I remember) / for frontend sync meeting.

acc without address_preimage (keep eth addr)
https://pr-1564.oasis-explorer.pages.dev/mainnet/sapphire/address/0x95D683e4365209E5ce64f2e26e00C23207fe7Ec3
https://explorer.dev.oasis.io/mainnet/sapphire/address/0x95D683e4365209E5ce64f2e26e00C23207fe7Ec3

acc with address_preimage (works the same way)
https://pr-1564.oasis-explorer.pages.dev/mainnet/sapphire/address/0x8Bba8906467831962Ed5E524F4Bc47733CBF3b27
https://explorer.dev.oasis.io/mainnet/sapphire/address/0x8Bba8906467831962Ed5E524F4Bc47733CBF3b27

Notes: (thx @Andrew7234)

  • the address preimage is populated whenever nexus encounters the corresponding evm address of a given oasis style address
  • any evm transaction (evm.Create or evm.Call) should create preimage
  • the consensus deposit txs are part of the consensusaccounts module and not the evm module, so the tx body of consensus deposit only includes the oasis-style addresses in the tx body and thus Nexus isn’t aware of the corresponding evm address

Copy link

github-actions bot commented Oct 7, 2024

Deployed to Cloudflare Pages

Latest commit: 5a3a25d17026b5458f7ef6653c015336d7a20585
Status:✅ Deploy successful!
Preview URL: https://e50a9082.oasis-explorer.pages.dev
Alias: https://pr-1564.oasis-explorer.pages.dev

src/oasis-nexus/api.ts Outdated Show resolved Hide resolved
@buberdds buberdds force-pushed the mz/ethAddress branch 2 times, most recently from f89a7a4 to d856438 Compare October 11, 2024 08:12
@buberdds buberdds changed the title Keep eth address when it is provided via URL Keep eth address to fetch runtimes data Oct 11, 2024
@buberdds buberdds force-pushed the mz/ethAddress branch 2 times, most recently from 781d415 to 95ffd9a Compare October 11, 2024 08:45
@buberdds buberdds marked this pull request as ready for review October 11, 2024 09:00
@buberdds buberdds requested a review from lukaw3d October 13, 2024 10:31
src/oasis-nexus/api.ts Outdated Show resolved Hide resolved
@lukaw3d
Copy link
Member

lukaw3d commented Oct 16, 2024

@buberdds
Copy link
Contributor Author

buberdds commented Oct 16, 2024

Ok, search will behave the same way. Discord test is failing (not related to changes)

@lukaw3d
Copy link
Member

lukaw3d commented Oct 16, 2024

Ooooh, so searching for "0x95D683e4365209E5ce64f2e26e00C23207fe7Ec3" would have still found the 4 results

@buberdds
Copy link
Contributor Author

Yes, search functionality is not affected by this PR. For now we want to tweak account view with eth address once you navigate from dApp. Will look at search later this week.

src/oasis-nexus/api.ts Outdated Show resolved Hide resolved
.changelog/1564.bugfix.md Outdated Show resolved Hide resolved
@buberdds buberdds merged commit 449338c into master Oct 17, 2024
8 checks passed
@buberdds buberdds deleted the mz/ethAddress branch October 17, 2024 06:32
@lukaw3d lukaw3d changed the title Keep eth address to fetch runtimes data Retain ETH address in details page for accounts with no EVM transactions Oct 17, 2024
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