Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61a7f2e

Browse files
authored
Merge pull request #95 from EOSIO/add-get-name
Update to 0.3.0
2 parents 43c3c8f + 76eba52 commit 61a7f2e

File tree

5 files changed

+3132
-3265
lines changed

5 files changed

+3132
-3265
lines changed

__mocks__/Scatter.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Authenticator } from 'universal-authenticator-library'
2+
13
const ScatterJS = {
24
scatter: {
35
connect: (appName) => {
@@ -36,9 +38,9 @@ class ScatterUser {
3638
}
3739
}
3840

39-
export class Scatter {
41+
export class Scatter extends Authenticator {
4042
constructor(chains, options = { appName: '' }) {
41-
this.chains = chains
43+
super(chains)
4244
this.appName = options.appName
4345
this.scatterIsLoading = false
4446
this.initError = null
@@ -124,4 +126,8 @@ export class Scatter {
124126
async shouldRequestAccountName() {
125127
return true
126128
}
129+
130+
getName() {
131+
return 'authenticator'
132+
}
127133
}

examples/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"prop-types": "15.7.2",
3939
"react": "16.13.0",
4040
"react-dom": "16.13.0",
41-
"ual-ledger": "0.2.0",
42-
"ual-lynx": "0.3.0",
43-
"ual-reactjs-renderer": "^0.2.0",
44-
"ual-scatter": "0.2.0"
41+
"ual-ledger": "0.3.0",
42+
"ual-lynx": "0.4.0",
43+
"ual-reactjs-renderer": "../",
44+
"ual-scatter": "0.3.0"
4545
}
4646
}

0 commit comments

Comments
 (0)