Skip to content

Commit

Permalink
fix: adding account creation plugins to context
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Nov 1, 2023
1 parent 1257ded commit 6a8188d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/account-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export class CreateAccountContext {
chains: ChainDefinition[] = []
fetch: Fetch
ui: UserInterface
accountCreationPlugins: AccountCreationPlugin[] = []

constructor(options: CreateAccountContextOptions) {
this.appName = String(options.appName)
if (options.chains) {
Expand All @@ -90,6 +92,9 @@ export class CreateAccountContext {
}
this.fetch = options.fetch
this.ui = options.ui
if (options.accountCreationPlugins) {
this.accountCreationPlugins = options.accountCreationPlugins
}
}

getClient(chain: ChainDefinition): APIClient {
Expand Down

0 comments on commit 6a8188d

Please sign in to comment.