Skip to content

Commit

Permalink
Removed rpcConfig setting
Browse files Browse the repository at this point in the history
  • Loading branch information
makylfang committed Jan 12, 2024
1 parent b40a9e6 commit 3216d54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arcana/auth",
"version": "1.0.9-beta.3",
"version": "1.0.9-rc.2",
"description": "Arcana Auth",
"main": "dist/index.js",
"type": "module",
Expand Down
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class AuthProvider {
private appConfig: AppConfig
private iframeWrapper: IframeWrapper
private networkConfig: NetworkConfig
private readonly rpcConfig: ChainConfigInput | undefined
private initStatus: InitStatus = InitStatus.CREATED
private initPromises: ((value: AuthProvider) => void)[] = []

Expand Down Expand Up @@ -75,11 +74,7 @@ class AuthProvider {
this.networkConfig = getNetworkConfig(this.params.network)

preLoadIframe(this.networkConfig.walletUrl, this.appId)
this.rpcConfig = this.params.chainConfig
this._provider = new ArcanaProvider(
this.networkConfig.authUrl,
this.rpcConfig
)
this._provider = new ArcanaProvider(this.networkConfig.authUrl)

if (this.params.debug) {
setLogLevel(LOG_LEVEL.DEBUG)
Expand Down
7 changes: 2 additions & 5 deletions src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ export class ArcanaProvider
private iframe: IframeWrapper
private logger: Logger = getLogger()
private popup: RequestPopupHandler
constructor(
private authUrl: string,
private rpcConfig: ChainConfigInput | undefined
) {
constructor(private authUrl: string) {
super()
this.subscriber = new SafeEventEmitter()
}
Expand All @@ -86,7 +83,7 @@ export class ArcanaProvider
getAppMode: () => this.iframe.appMode,
getAppConfig: this.iframe.getAppConfig,
getWalletPosition: this.iframe.getWalletPlace,
getRpcConfig: () => this.rpcConfig,
getRpcConfig: () => undefined,
sendPendingRequestCount: this.iframe.onReceivingPendingRequestCount,
triggerSocialLogin: auth.loginWithSocial,
triggerPasswordlessLogin: auth.loginWithLink,
Expand Down
2 changes: 0 additions & 2 deletions src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ export interface ConstructorParams {
network: ('testnet' | 'dev' | 'mainnet') | NetworkConfig
debug: boolean
alwaysVisible: boolean
chainConfig?: ChainConfigInput
redirectUrl?: string
theme: Theme
position: Position
setWindowProvider: boolean
Expand Down

0 comments on commit 3216d54

Please sign in to comment.