Skip to content

Commit 602ebe3

Browse files
committed
fix(keplr mobile): Throw after redirection
1 parent bdd9d7f commit 602ebe3

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/connectors/keplrMobile/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,8 @@ export class KeplrMobileBaseConnector extends Connector {
5858
}
5959

6060
async connect(_args: ConnectArgs = {}): Promise<ConnectorData> {
61-
await this.ensureWallet()
62-
63-
// will return empty data, connect will only open keplr mobile app
64-
// will require to implement the wallet connection
65-
return {
66-
account: "",
67-
chainId: BigInt(0),
68-
}
61+
this.ensureWallet()
62+
throw new Error("Please continue in Keplr mobile app")
6963
}
7064

7165
async disconnect(): Promise<void> {

0 commit comments

Comments
 (0)