File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/modules/select/wallets Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ function fortmatic(
25
25
networkId === 1 ? undefined : networkName ( networkId )
26
26
)
27
27
const provider = instance . getProvider ( )
28
-
29
28
const { BigNumber } = helpers
30
29
31
30
return {
@@ -34,6 +33,7 @@ function fortmatic(
34
33
interface : {
35
34
name : 'Fortmatic' ,
36
35
connect : instance . user . login ,
36
+ disconnect : instance . user . logout ,
37
37
address : {
38
38
get : ( ) => Promise . resolve ( provider . account )
39
39
} ,
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ function portis(options: SdkWalletOptions & CommonWalletOptions): WalletModule {
19
19
const { default : Portis } = await import ( '@portis/web3' )
20
20
const instance = new Portis ( apiKey , networkName ( networkId ) )
21
21
const provider = instance . provider
22
-
23
22
const { BigNumber } = helpers
24
23
25
24
return {
@@ -28,6 +27,10 @@ function portis(options: SdkWalletOptions & CommonWalletOptions): WalletModule {
28
27
interface : {
29
28
name : 'Portis' ,
30
29
connect : provider . enable ,
30
+ disconnect : ( ) => {
31
+ instance . logout ( )
32
+ provider . stop ( )
33
+ } ,
31
34
address : {
32
35
onChange : func => {
33
36
instance . onLogin ( ( address : string ) => {
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ function squarelink(
25
25
} )
26
26
27
27
const provider = instance . getProviderSync ( )
28
-
29
28
const { BigNumber } = helpers
30
29
31
30
return {
@@ -34,6 +33,7 @@ function squarelink(
34
33
interface : {
35
34
name : 'Squarelink' ,
36
35
connect : provider . enable ,
36
+ disconnect : ( ) => provider . stop ( ) ,
37
37
address : {
38
38
get : ( ) => Promise . resolve ( instance . accounts [ 0 ] )
39
39
} ,
You can’t perform that action at this time.
0 commit comments