You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's working fine for subscription / unsubscription.
At change of network, both account and network events are well occurring.
But I have still unexpected account change events, at each new block.
2. wallet_getPermissions :
It works.
Return accounts string, in an array of one item.
If the user declines the permission, the response is an empty array.
3. wallet_requestAccounts :
It works.
Returns an array of hex string ; just use first element.
Still not a fan of this type of response ; I think it's not a good idea to use an array to hold just one account address. It encourages abusing this accounts array to pass arbitrary data. It's a way for security issue.
4. wallet_watchAsset :
It works. The result is true.
The optional parameters are useless, as they are automatically recovered from the blockchain. Whatever you provide, only the blockchain data are used.
If the address is not an ERC20, the result is false.
If the token is already displayed, the result is true.
If the user decline the request, the function throw an error. Impossible to differentiate with an internal browser problem.
5. wallet_addStarknetChain :
Not supported by Braavos wallet 002.
6. wallet_switchStarknetChain :
Not supported by Braavos wallet 002.
7. wallet_requestChainId :
It works.
response is string encoded of SN_MAIN, SN_GOERLI or SN_SEPOLIA.
8. wallet_deploymentData :
This new function is always throwing an error, even just after starknet_addDeployAccountTransaction.
9. starknet_addInvokeTransaction :
It works.
If the user declines to sign, the function throw an error. Impossible to differentiate with an internal browser problem.
10. starknet_addDeclareTransaction :
The problem encountered in 001 is still there : #196 (comment)
11. starknet_addDeployAccountTransaction :
It works.
The address of deployment is not the one expected with the universal deployer. Ex :
constdecClassHash="0x2bfd9564754d9b4a326da62b2f22b8fea7bbeffd62da4fcaea986c323b7aeb";// OZ cairo v2.1.0conststarkKeyPub="0x03cb804773b6a237db952b1d4b651a90ee08651fbe74b5b05f8fabb2529acb45";// calculate addressconstOZaccountConstructorCallData=CallData.compile([starkKeyPub]);constOZcontractAddress=hash.calculateContractAddressFromHash(starkKeyPub,decClassHash,OZaccountConstructorCallData,0);
Expected address is 0x360ccaecfd9fb321de0b70da56bc9b96510b75a6ee21e8e9b547f4710ad007f
But the function is returning :
@avimak @tabaktoni @ivpavici
Linked to #194
My test DAPP has been updated for the experimental Braavos wallet v0.0.2, and is available here : https://cairo1-js-git-testbraavos002-philipper26.vercel.app/
The results of my tests :
1. subscription to events :
It's working fine for subscription / unsubscription.
At change of network, both account and network events are well occurring.
2. wallet_getPermissions :
It works.
accounts
string, in an array of one item.3. wallet_requestAccounts :
It works.
Returns an array of hex string ; just use first element.
4. wallet_watchAsset :
It works. The result is
true
.false
.true
.5. wallet_addStarknetChain :
Not supported by Braavos wallet 002.
6. wallet_switchStarknetChain :
Not supported by Braavos wallet 002.
7. wallet_requestChainId :
It works.
SN_MAIN
,SN_GOERLI
orSN_SEPOLIA
.8. wallet_deploymentData :
9. starknet_addInvokeTransaction :
It works.
10. starknet_addDeclareTransaction :
The problem encountered in 001 is still there : #196 (comment)
11. starknet_addDeployAccountTransaction :
It works.
12. starknet_signTypedData :
It works.
13. starknet_supportedSpecs :
It works.
0.5
The text was updated successfully, but these errors were encountered: