-
Notifications
You must be signed in to change notification settings - Fork 758
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
Report of WalletAccounts tests #1060
Comments
@PhilippeR26 I'll like to work on this |
Hello, |
@tabaktoni
I think that you should override |
Following the last commits of the Wallet API, 2 things have to be implemented :
Warning Currently not open to contributors. |
@PhilippeR26 can we close this? |
If you consider that all identified problems are solved, or are minor, or will be solved later, you can close. |
Context
I have ended the tests of
WalletAccount
.I have some comments :
WalletAccount
class, but as there is no destructor in Typescript, what are the consequences for the DAPP and for the wallet to create / get out of scope many timesWalletAccount
instances?With Starknet.js :
Directly with the swo :
About automatic change of account, the re-initialization of cairoVersion is missing here
starknet.js/src/wallet/account.ts
Line 55 in 4b83943
About automatic change of chain, the change of this.chainId without changing the nodeurl is generating a complete mess in the DAPP. I think that if the DAPP accepts to change of chain, it has to propose a Rpc provider for each chain accepted. So, in this spirit, it will be the responsibility of the DAPP to convert a new chainId to a new Rpc provider. I think it will be important in the case of layer 3. So, we could delete setChainId, and replace it by something accepting the RpcProviderOptions as input.
Also one little thing, about the access to the frontend provider : if the DAPP wants to do something with the provider in use in the Wallet Account, it needs :
Normally,
channel
should be hidden to the DAPP devs. Couldn't we have something like :Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: