File tree Expand file tree Collapse file tree 5 files changed +3132
-3265
lines changed Expand file tree Collapse file tree 5 files changed +3132
-3265
lines changed Original file line number Diff line number Diff line change 1+ import { Authenticator } from 'universal-authenticator-library'
2+
13const 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}
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments