Skip to content

Commit 4433b5e

Browse files
authored
Merge pull request #277 from blocknative/fix/authereum-destroy
Update authereum and use destroy method. Closes #276
2 parents 9c9b03e + 77cb0f0 commit 4433b5e

File tree

3 files changed

+16
-295
lines changed

3 files changed

+16
-295
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@toruslabs/torus-embed": "^1.2.4",
4646
"@unilogin/provider": "^0.5.20",
4747
"@walletconnect/web3-provider": "^1.0.0-beta.45",
48-
"authereum": "^0.0.4-beta.130",
48+
"authereum": "^0.0.4-beta.131",
4949
"bignumber.js": "^9.0.0",
5050
"bnc-sdk": "2.0.0",
5151
"bowser": "^2.5.2",

src/modules/select/wallets/authereum.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ function authereum(
3131

3232
const provider = instance.getProvider()
3333

34+
console.log({ instance, provider })
35+
3436
return {
3537
provider,
3638
instance,
3739
interface: {
3840
name: 'Authereum',
3941
connect: () => provider.enable(),
40-
disconnect: () => instance.logout(),
42+
disconnect: () => {
43+
instance.destroy()
44+
},
4145
address: {
4246
get: () => instance.getAccountAddress()
4347
},

0 commit comments

Comments
 (0)