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

Skip to content

Commit 059a056

Browse files
author
Jon La Marr
committed
Bump ual version and add getName.
1 parent 43c3c8f commit 059a056

File tree

3 files changed

+1581
-1634
lines changed

3 files changed

+1581
-1634
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
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -27,7 +27,7 @@
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",

0 commit comments

Comments
 (0)