KStasi / fa2-deployer

🍪🍯 FA2 Bakery - token constructor on Tezos. Deploy your own token now!
https://fa2-bakery.netlify.app/
30 stars 17 forks source link

Unable to connect Kukai wallet #7

Open Trewaters opened 3 years ago

Trewaters commented 3 years ago

Hi, Thanks for the application! I think this is great.

I am unable to connect my Kukai wallet. Is this supported? If so how do you suggest I do it?

Used this website https://fa2-bakery.netlify.app/

Trewaters commented 3 years ago

Hi! I am still interested in your thoughts on this. I like the Twitter Auth ability of Kukai wallet. It would help me onboard people easier to using XTZ crypto. Thanks again for any guidance or help you could provide.

Trewaters commented 3 years ago

It sounds like the issue is this... You will need to set preferredNetwork to NetworkType.FLORENCENET in the DAppClient constructor. Otherwise, your Florencenet dApp will connect to Kukai's mainnet deployment, which will result in a network mismatch.

I got some help from the Kukai wallet support team ( https://github.com/kukai-wallet/kukai/issues/115 ).

Would this be something you could address?

Trewaters commented 3 years ago

Okay I have been reading some docs in my spare time. I also asked about this code connecting kukai wallet here ( https://tezos.stackexchange.com/questions/3712/how-to-connect-kukai-wallet-using-beacon-sdk ) and got a good response. Unfortunately I am still unable to connect kukai when I test.

What I have noticed is that the Florencenet and the Granadanet return networktype.id = undefined, but the older networks are fine. I wonder if it is an older dependency that is not picking up the newer networks. I am in debugging mode now and will update you with what I discover....

Trewaters commented 3 years ago

updating to latest 2.3.1 resolved the undefined problem.

"@airgap/beacon-sdk": "^2.3.1"

This makes sense because the mainnet upgraded recently (past couple weeks). The beacon added the updated networks to their networkType model, found here ( https://typedocs.walletbeacon.io/enums/networktype.html ).

I still don't see the kukai wallet connecting properly after I added this to options object.

preferredNetwork: DEFAULT_NETWORK

The browser sees this object...

send options { "name": "FA2 deployer", "iconUrl": "https://tezostaquito.io/img/favicon.png", "preferredNetwork": { "id": "granadanet", "name": "Granadanet", "type": "test", "rpcBaseURL": "https://granadanet.smartpy.io/" }, "eventHandlers": { "PERMISSION_REQUEST_SUCCESS": {} } }

Browser returns this error { "name": "NetworkNotSupportedBeaconError", "title": "Network Error", "message": "[NETWORK_NOT_SUPPORTED]:The wallet does not support this network. Please select another one.", "description": "The wallet does not support this network. Please select another one." }

Still working on this but any ideas are appreciated.