diff --git a/packages/providers/onekey-alph-provider/src/OnekeyAlphProvider.ts b/packages/providers/onekey-alph-provider/src/OnekeyAlphProvider.ts index 70cf0b36..a2125c93 100644 --- a/packages/providers/onekey-alph-provider/src/OnekeyAlphProvider.ts +++ b/packages/providers/onekey-alph-provider/src/OnekeyAlphProvider.ts @@ -148,9 +148,16 @@ export class ProviderAlph extends InteractiveSignerProvider implements AlephiumW if (options.onDisconnected) { this.onDisconnected = options.onDisconnected } + const params: Record = {}; + Object.keys(options).forEach((key) => { + if (options[key as keyof EnableOptions] instanceof Function) { + return; + } + params[key] = options[key as keyof EnableOptions]; + }) return this.bridgeRequest({ method: 'enableIfConnected', - params: options, + params, }) as Promise; }