File tree Expand file tree Collapse file tree 3 files changed +1581
-1634
lines changed Expand file tree Collapse file tree 3 files changed +1581
-1634
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 11{
22 "name" : " ual-reactjs-renderer" ,
3- "version" : " 0.2 .0" ,
3+ "version" : " 0.3 .0" ,
44 "main" : " dist/index.js" ,
55 "author" : {
66 "name" : " block.one" ,
2727 "react-icons" : " 3.9.0" ,
2828 "react-tooltip" : " 3.9.2" ,
2929 "styled-components" : " 4.4.1" ,
30- "universal-authenticator-library" : " 0.2 .0"
30+ "universal-authenticator-library" : " 0.3 .0"
3131 },
3232 "devDependencies" : {
3333 "@babel/cli" : " ^7.8.4" ,
You can’t perform that action at this time.
0 commit comments