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

Add Tally wallet #652

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Add Tally wallet #652

wants to merge 7 commits into from

Conversation

beemeeupnow
Copy link

https://tally.cash/
Tally is a community-owned and operated wallet.

Please let me know if I missed anything.

Tested locally:

  • with no wallet extensions installed
  • with only MetaMask installed
  • with only Tally installed
  • with both MetaMask and Tally installed (including toggling Tally's 'Tally as default' option)

@beemeeupnow beemeeupnow changed the title Add Tally wallet - resolves #651 Add Tally wallet Feb 14, 2022
@beemeeupnow
Copy link
Author

Just realized I didn't select the develop branch. I will fix this tomorrow.

@adamazad adamazad changed the base branch from master to develop February 14, 2022 08:17
@beemeeupnow
Copy link
Author

Thank you for switching the target branch for me. I re-tested to confirm behavior is still as expected on the develop branch.

@beemeeupnow
Copy link
Author

I see that the check failure is unrelated to these changes.
Please let me know if anything further is needed from my end.

@adamazad
Copy link
Contributor

adamazad commented Feb 15, 2022 via email

src/constants/index.tsx Outdated Show resolved Hide resolved
@niemam29
Copy link
Contributor

niemam29 commented Mar 1, 2022

Test failed
When using Tally wallet there is no way to change network from Ethereum to other, clicking on for ex. Rinkeby causes no action at all.

@beemeeupnow
Copy link
Author

Test failed When using Tally wallet there is no way to change network from Ethereum to other, clicking on for ex. Rinkeby causes no action at all.

Multi-network is coming to Tally.

Should the dApp have code added to show when the requested change doesn't happen? (in a new PR?)

@beemeeupnow
Copy link
Author

Hello,

Please let me know about my last question when you get a chance.

Thank you

@niemam29
Copy link
Contributor

niemam29 commented Mar 9, 2022

Hey, not sure how it should look. Maybe there should be some notification to user? @0xVenky what you think about that?

@Mi-Lan
Copy link
Collaborator

Mi-Lan commented Mar 11, 2022

Hmm im not sure how to replicate this but it seems that browser is not recognising I have Tally installed?

Screen.Recording.2022-03-11.at.12.38.58.mov

@Mi-Lan
Copy link
Collaborator

Mi-Lan commented Mar 11, 2022

Also when Im in chrome Tally is available as option and when I click on It metmask prompt pops out...Is this just me or?

Screen.Recording.2022-03-11.at.12.45.34.mov

@niemam29
Copy link
Contributor

@Mi-Lan There are multiple problems when you have multiple wallet installed, not only on this PR.

@Mi-Lan
Copy link
Collaborator

Mi-Lan commented Mar 11, 2022

@Mi-Lan There are multiple problems when you have multiple wallet installed, not only on this PR.

Aha but I have only tally on firefox and I cant get it out of that state where it asks me to install it...

@niemam29
Copy link
Contributor

@Mi-Lan Have u got "Use as default" set to true in Tally? Because as i see when it is set to false, even when no other wallet is installed, it asks me to install it, but when i switch it to true it starts working correctly

@karczuRF
Copy link
Contributor

karczuRF commented Mar 14, 2022

I've also made some test and got some thoughts. Tested on Chrome and Firefox, works the same.

  1. Metamask is not installed, but Tally is installed - app still asking for installing both wallets.
    image

  2. If Tally is NOT selected as default can't be selected (first scr). When IS selected as default wallet MetaMask is not visible (second scr).

image
image

  1. When initializing connection popup has not adjusted text, it's showing connector's name.
    image

  2. Switching network doesn't work, as was mentioned above by @beemeeupnow . So would be great if the Tally would be able to show notification that multi-network is not supported yet.

@beemeeupnow
Copy link
Author

I will update this soon

@netlify
Copy link

netlify bot commented Mar 28, 2022

Deploy Preview for swapr ready!

Name Link
🔨 Latest commit d63e6f0
🔍 Latest deploy log https://app.netlify.com/sites/swapr/deploys/629f719c495bc80008649b4c
😎 Deploy Preview https://deploy-preview-652--swapr.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Author

@beemeeupnow beemeeupnow left a comment

Choose a reason for hiding this comment

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

Updated to not show 'Install' for Tally Ho if it is already installed.

Notes:

  • When Tally Ho is installed and the setting to use it as default is enabled, the user is allowed to select 'Injected' or 'Metamask' or 'Tally Ho' on a dapp and have it open Tally Ho (expected behavior)
    • This is because it 'takes over' window.ethereum, like other injected wallets
  • Multi-network is coming soon to Tally Ho. In the meantime, I will check on the wallet-side code to see that we send the relevant error when switching to an unsupported network. (should not block this PR)

In the future, we could make a custom connector for Tally Ho (like exists for Coinbase Wallet), but that requires more time and work.

@niemam29
Copy link
Contributor

niemam29 commented Apr 1, 2022

Hey, after some tests it looks good but there is some minor issue - when user is connected to metamask and switch default one to tally the tally is displayed as connected
cach2
If it hasn't easy fix we shouldnt focus on this imo

@MilanVojnovic95
Copy link
Collaborator

Tested and if Tally Wallet is not installed then I don’t get the option to install, I get Tally as an option in connect wallet only if already installed.

@beemeeupnow
Copy link
Author

Hey, after some tests it looks good but there is some minor issue - when user is connected to metamask and switch default one to tally the tally is displayed as connected cach2 If it hasn't easy fix we shouldnt focus on this imo

Good find! It's not specific to Tally Ho wallet or any of the changes I have made.

This is also the behavior if you have both metamask and coinbase wallet installed in the current develop branch without the changes from this PR. (e.g. I connect with metamask, then disable the metamask extension and enable coinbase wallet extension, I see metamask when clicking 'Change wallet')

It would be good to fix, but is a general issue outside of this PR scope.

Is there anything holding back approvals at this time?

@karczuRF
Copy link
Contributor

karczuRF commented Apr 4, 2022

This is also the behavior if you have both metamask and coinbase wallet installed in the current develop branch without the changes from this PR. (e.g. I connect with metamask, then disable the metamask extension and enable coinbase wallet extension, I see metamask when clicking 'Change wallet')

That's what I'm working on right now. I've found the solution, but still in some cases it's buggy, especially using Brave browser. After Tally is merged I will test it out together. That's why I mentioned previously that adding window.tally might not be the best solution.

Is there anything holding back approvals at this time?

Not sure if Brave browser is supported, but doesn't work. Since Brave wallet pretends to be MetaMask I've found some cases, scrs below. Do you have plans to fix that?

image

image

image

Also getting too many logs. Are they necessery?
image

@beemeeupnow
Copy link
Author

@karczuRF I pulled the latest and did encounter the same thing in Brave (Chrome was fine for me)

When selecting either option, Tally popped up for me, which I see as acceptable.

I'll have to look more into how Brave is adding 'isMetaMask' here, but don't feel it should hold up this PR.

@karczuRF
Copy link
Contributor

@karczuRF I pulled the latest and did encounter the same thing in Brave (Chrome was fine for me)

When selecting either option, Tally popped up for me, which I see as acceptable.

I'll have to look more into how Brave is adding 'isMetaMask' here, but don't feel it should hold up this PR.

Alright I can agree that Brave is bigger issue and shouldn't hold up this PR, but unfortunately I still can see the problems which I've mentioned before.
Eg using chrome with Tally disabled still doesn't work fine in my case. @niemam29 @MilanVojnovic95 can you check this out, please?

image

And also still too many logs are consoled.

@niemam29
Copy link
Contributor

@karczuRF I pulled the latest and did encounter the same thing in Brave (Chrome was fine for me)
When selecting either option, Tally popped up for me, which I see as acceptable.
I'll have to look more into how Brave is adding 'isMetaMask' here, but don't feel it should hold up this PR.

Alright I can agree that Brave is bigger issue and shouldn't hold up this PR, but unfortunately I still can see the problems which I've mentioned before. Eg using chrome with Tally disabled still doesn't work fine in my case. @niemam29 @MilanVojnovic95 can you check this out, please?

image

And also still too many logs are consoled.

For me this problem occurs only when i have installed metamask, tally and coinbase wallet. When i'm using only tally and metamask it is good

@karczuRF karczuRF mentioned this pull request May 26, 2022
13 tasks
@beemeeupnow
Copy link
Author

synced with latest develop branch
I see your other PR focused on improving the injected behavior in general

@0xVenky
Copy link
Member

0xVenky commented Jun 11, 2022

Hey, We are fans of Tally wallet but I guess at its current state of this PR, we cant merge this version. Reasons listed below:

  • Tally is only on Mainnet and Swapr has extremely little presence in Mainnet. When Tally wallet starts supporting multichains and supports chains that have Swapr contracts deployed, it would be good to create a new PR with the latest version of Tally wallet.
  • In the current version, if user installs Tally wallet, Metamask remains hidden as the injected wallet assumes Tally wallet to be the default wallet. This will not be ideal for our userbase as predominantly most of them are Metamask.

We will keep an eye out on the future versions of Tally wallet and prioritise when its available on Arbitrum or Gnosis chain. :)

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.

8 participants