Skip to content

Commit

Permalink
owallet_initProviderState
Browse files Browse the repository at this point in the history
  • Loading branch information
marxeille committed Feb 10, 2025
1 parent e9e77c9 commit c45ae1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/provider/src/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,12 @@ class EthereumProvider extends EventEmitter implements IEthereumProvider {
};

protected _initProviderState = async () => {
const descriptor = Object.getOwnPropertyDescriptor(window, "keplr");

if (descriptor) {
return;
}

const initialProviderState = await this._requestMethod("request", {
method: "owallet_initProviderState",
});
Expand Down

0 comments on commit c45ae1b

Please sign in to comment.