Skip to content

Commit

Permalink
more set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Seroxdesign committed Jun 12, 2024
1 parent 5829861 commit 4fd666f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
21 changes: 19 additions & 2 deletions wallets/keplr/src/KeplrWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,26 @@ export type Keplr = 'keplr'
export class KeplrWallet {
seedPhrase = ''
wallet: Keplr = 'keplr'

constructor(readonly page: Page) {
retries: number
browser: any
mainWindow: any
keplrWindow: any
keplrNotification: any
activeTabName: string
extensionData: any


constructor(
readonly page: Page

Check warning

Code scanning / CodeQL

Useless assignment to property Warning

This write to property 'page' is useless, since
another property write
always overrides it.
) {
this.page = page
this.browser = undefined
this.mainWindow = undefined
this.keplrWindow = undefined
this.keplrNotification = undefined
this.activeTabName = undefined
this.extensionData = undefined
this.retries = 0
}

/**
Expand Down
5 changes: 5 additions & 0 deletions wallets/keplr/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const SEED_PHRASE = 'seed phrase'
export const PASSWORD = 'password'
export const NO_CONTEXT = 'No context found'
export const NO_PAGE = 'No page found'
export const MISSING_INIT = 'Keplr not initialized'

0 comments on commit 4fd666f

Please sign in to comment.