-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi contract keystore #17
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+
*/ | ||
export class MultiContractBrowserLocalStorageKeyStore extends MultiContractKeyStore { | ||
/** @hidden */ | ||
private localStorage: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private localStorage: any; | |
private localStorage: Storage; |
* @param networkId The targeted network. (ex. default, betanet, etc…) | ||
*/ | ||
async getAccounts(networkId: string): Promise<string[]> { | ||
const result = new Array<string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const result = new Array<string>(); | |
const result: string[] = []; |
* @param accountId The targeted account. | ||
*/ | ||
async getContracts(networkId: string, accountId: string): Promise<string[]> { | ||
const result = new Array<string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const result = new Array<string>(); | |
const result: string[] = []; |
/** @hidden */ | ||
private *storageKeys(): IterableIterator<string> { | ||
for (let i = 0; i < this.localStorage.length; i++) { | ||
yield this.localStorage.key(i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yield this.localStorage.key(i); | |
yield this.localStorage.key(i) as string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+
Pre-flight checklist
pnpm changeset
to create achangeset
JSON document appropriate for this change.Motivation
Test Plan
Related issues/PRs