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
feat: add WELLDONE extension wallet #477
Conversation
Hey, @Yoon-Suji thank you for submitting this PR. Could you please add a (docs) Before reviewing the code I tried to install and test out the functionality of this wallet/extension but for some reason, I am unable to create a new wallet with this extension it always gets stuck in this view: |
@kujtimprenkuSQA Hi, I'm sorry for late response😂 |
This is the chrome version I am using on this machine, I think it's the latest version: Version 106.0.5249.91 (Official Build) (64-bit) The Welldone wallet is still not working for me, will ask other team members to have a look at it too. |
Hey @Yoon-Suji. I was able to successfully create an account using the WELLDONE extension. I built your branch to test the functionality and I am seeing a couple of bugs: |
}; | ||
}, | ||
|
||
async signAndSendTransaction({ signerId, receiverId, actions }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should consider using the signTransactions
function in packages\wallet-utils\src\lib\sign-transactions.ts
when signing to avoid using these "helper function" like _validateAccessKey
, convertTransaction
and convertActions
. All of the above functions are used in signTransactions
. This way we avoid duplicating code.
You will have to provide a signer: Signer
object to the signTransactions
function. You can check out the nightly
package and see how they have done it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We implemented a method of signing before sending a transaction on its own inside the wallet. So we use it instead of using the signTransactions
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I changed the signAndSendTransaction
method to using signTransactions
function. But the signAndSendTransactions
method still uses the dapp:sendTransaction
method (the wallet signs and sends transactions) because we do not currently support signing multiple transactions. This code will change after the wallet has been updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, we're going to have a look at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Yoon-Suji , I'm unable to create or import wallet as well. Getting stuck on "Create a wallet" screen
Tried it on two machines with Chrome Versions 106.0.5249.119 (Official Build) (64-bit) and 106.0.5249.103 (Official Build) (64-bit). The same goes for Brave browser so you might want to investigate.
Small thing I've noticed with password rule text... It says "write more than 8 letters" instead of "write 8 or more characters" if you want to change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DamirSQA , We are trying to reproduce the exceptional situation where the error occurs.
So I would really appreciate it if you could send me the console log by right-clicking on the Create a Wallet
screen and clicking the inspect button.
Thanks for reporting the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @DamirSQA We updated our wallet in chrome web store.
Could you turn off all the other wallet extensions and try again?
If it works well, I would appreciate it if you could tell me the type of extension you are using.
If it still doesn't work, Could you send me the console log one more time, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing extensions didn't make a difference. On some devices it does work, on the others does not.
Hi @Yoon-Suji , thanks for submitting the PR. As a reminder, the security statement needs to be shown either on the GitHub profile/repo or the website. You can check it here again. Thanks! |
Hi @AmmarHumackicSQA |
Hi @amirsaran3 |
Hey @Yoon-Suji. I tested your new version and signing works. However wallets should have a function that allows us to just sign the transaction and return the signature. Is it possible to add |
Hey @amirsaran3. Welldone wallet has the |
@Yoon-Suji After latest changes I get this error when trying to sign message: |
@amirsaran3 And also I'll add a description of the |
Hi @amirsaran3 , we checked again and it seems that all works well with WELLDONE version 0.0.25 (latest version updated in the store) Could you try again? And we updated our docs too! |
hey, we implemented the If the But we are not supported signing multiple transactions because currently the Welldone wallet was ready to send multiple transactions, but it is not ready to sign multiple transactions. So the |
Description
WELLDONE extension wallet is multi-chain wallet that support NEAR protocol. You can read more information in here.
Checklist:
Type of change.