mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-08 10:22:31 -05:00
add connect button
This commit is contained in:
@@ -41,7 +41,9 @@ export function frameConnector() {
|
||||
async getAccounts() {
|
||||
if (!connected) throw new Error("Not connected");
|
||||
const provider = await this.getProvider();
|
||||
const accounts = await provider.request({ method: "eth_accounts" });
|
||||
const accounts = await provider.request({
|
||||
method: "eth_requestAccounts",
|
||||
});
|
||||
return accounts.map((x) => getAddress(x));
|
||||
},
|
||||
async getChainId() {
|
||||
|
||||
Reference in New Issue
Block a user