Skip to content

Commit

Permalink
add getters for wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
NorbertBodziony committed Feb 19, 2024
1 parent 8c728d0 commit f30b187
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sdk/packages/selector-polkadot/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class NightlyConnectAdapter implements Injected {
get network() {
return this._appInitData.network
}
get walletsFromRegistry() {
return this._metadataWallets
}
get walletsList() {
return this._walletsList
}
Expand Down Expand Up @@ -552,7 +555,11 @@ export class NightlyConnectAdapter implements Injected {

innerConnect()
})

fetchWalletsFromRegistry = async () => {
return AppPolkadot.getWalletsMetadata(
`${this._appInitData.url ?? 'https://nc2.nightly.app'}/get_wallets_metadata`
)
}
disconnect = async () => {
try {
// Some apps might use disconnect to reset state / recreate session
Expand Down

0 comments on commit f30b187

Please sign in to comment.