Skip to content

Commit

Permalink
Fix serialization issue in alephium provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Nov 18, 2024
1 parent 15a66e3 commit 9db6054
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,16 @@ export class ProviderAlph extends InteractiveSignerProvider implements AlephiumW
if (options.onDisconnected) {
this.onDisconnected = options.onDisconnected
}
const params: Record<string, unknown> = {};
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<Account | undefined>;
}

Expand Down

0 comments on commit 9db6054

Please sign in to comment.