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

fix(@desktop/wallet): Fix link out to blockchain explorer from collectibles details view #14027

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

Khushboo-dev-cpp
Copy link
Contributor

fix(@desktop/wallet): Fix link out to blockchain explorer from collectibles details view

What does the PR do

Fixes the url to link out to a blockchain explorer from the collectible detailsview

Affected areas

CollectibleDetailsView

StatusQ checklist

  • add documentation if necessary (new component, new feature)
  • update sandbox app
    • in case of new component, add new component page
    • in case of new features, add variation to existing component page
    • nice to have: add it to the demo application as well
  • test changes in both light and dark theme?

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

Mainnet linkout

Screen.Recording.2024-03-19.at.10.55.12.AM.mov

Testnet linkout

Screen.Recording.2024-03-19.at.10.54.20.AM.mov

@status-im-auto
Copy link
Member

status-im-auto commented Mar 19, 2024

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ab6607c #2 2024-03-19 10:06:55 ~6 min tests/nim 📄log
✔️ ab6607c #2 2024-03-19 10:08:57 ~8 min macos/aarch64 🍎dmg
✔️ ab6607c #2 2024-03-19 10:10:08 ~9 min macos/x86_64 🍎dmg
✔️ ab6607c #2 2024-03-19 10:11:47 ~11 min tests/ui 📄log
✔️ ab6607c #2 2024-03-19 10:15:57 ~15 min linux/x86_64 📦tgz
✔️ ab6607c #2 2024-03-19 10:35:53 ~35 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9048126 #4 2024-03-19 13:43:51 ~5 min macos/aarch64 🍎dmg
✔️ 9048126 #4 2024-03-19 13:45:57 ~7 min tests/nim 📄log
✔️ 9048126 #4 2024-03-19 13:46:08 ~7 min macos/x86_64 🍎dmg
9048126 #4 2024-03-19 13:52:20 ~14 min tests/ui 📄log
✔️ 9048126 #4 2024-03-19 13:55:27 ~17 min linux/x86_64 📦tgz
✔️ 9048126 #3 2024-03-19 14:10:58 ~32 min windows/x86_64 💿exe
✔️ 9048126 #5 2024-03-19 14:19:14 ~4 min macos/aarch64 🍎dmg
✔️ 9048126 #5 2024-03-19 14:20:49 ~5 min tests/nim 📄log
✔️ 9048126 #5 2024-03-19 14:22:00 ~7 min macos/x86_64 🍎dmg
✔️ 9048126 #5 2024-03-19 14:25:48 ~10 min tests/ui 📄log
✔️ 4b7b3d1 #6 2024-03-19 14:36:28 ~6 min tests/nim 📄log
✔️ 4b7b3d1 #6 2024-03-19 14:37:24 ~7 min macos/aarch64 🍎dmg
✔️ 4b7b3d1 #6 2024-03-19 14:37:32 ~7 min macos/x86_64 🍎dmg
✔️ 4b7b3d1 #6 2024-03-19 14:42:01 ~11 min tests/ui 📄log
✔️ 4b7b3d1 #6 2024-03-19 14:47:44 ~17 min linux/x86_64 📦tgz
✔️ 4b7b3d1 #5 2024-03-19 15:03:36 ~33 min windows/x86_64 💿exe

@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the fix/collectibleDetailsEtherscanLinkOut branch from ab6607c to 9048126 Compare March 19, 2024 13:37
@Khushboo-dev-cpp Khushboo-dev-cpp changed the base branch from master to fix_links-13986 March 19, 2024 13:38
Base automatically changed from fix_links-13986 to master March 19, 2024 14:14
@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the fix/collectibleDetailsEtherscanLinkOut branch from 9048126 to 4b7b3d1 Compare March 19, 2024 14:30
Copy link
Contributor

@stefandunca stefandunca left a comment

Choose a reason for hiding this comment

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

👍

@@ -488,16 +488,39 @@ QtObject {
return root.mainModuleInst.addressWasShown(address)
}

function getExplorerUrl() {
function getExplorerUrl(networkShortName, contractAddress, tokenId) {
Copy link
Contributor

@dlipicar dlipicar Mar 20, 2024

Choose a reason for hiding this comment

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

hmm better use the chainID itself instead of the shortname as parameter IMO

the Collectible entry exposes that property
image

And by using that we don't have to go checking if testnet and Goerli are toggled on or off in the settings, it's explicit already. Makes more sense to me since there's a 1-1 chainID<->explorerAddress relation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @dlipicar I guess it better to use short name because it would be the same for testnet and mainnet while the chainIds would differ in both cases. This helps us make the code shorter in this case.

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Khushboo-dev-cpp Khushboo-dev-cpp merged commit 4f75956 into master Mar 20, 2024
8 checks passed
@Khushboo-dev-cpp Khushboo-dev-cpp deleted the fix/collectibleDetailsEtherscanLinkOut branch March 20, 2024 18:04
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.

None yet

5 participants