fabianbormann / cardano-peer-connect

This library aims to provide simple interfaces to implement CIP-0045 for dApps and wallets
Apache License 2.0
11 stars 4 forks source link

feat: Allow api overwrite #32

Closed marcuspuchalla closed 1 year ago

marcuspuchalla commented 1 year ago

When injecting the api, the caller (the wallet) can overwrite the default behaviour and replace the api event if it has already been injected.

This makes it much easier for the wallet to switch between different wallets. So when changing the used wallet, up until now the wallet had to disconnect and connect back again, even though the connection was already established.