perawallet / connect

JavaScript SDK for integrating Pera Wallet to web applications.
https://perawallet.app
Other
64 stars 20 forks source link

feat: Accept `network` on `connect` #80

Closed mucahit closed 1 year ago

mucahit commented 1 year ago

dApps can have a dynamic network selection to avoid page refresh requirements (the only way to update the network is to refresh the page because once you create the instance, you cannot update it). I've added a mechanism to accept network on the connect method; with this, they won't need to keep logic on their side.