Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/large-lions-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"burner-connector": patch
---

Bump wagmi, viem and @rainbow-me/rainbowkit
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"lint": "next lint"
},
"dependencies": {
"@rainbow-me/rainbowkit": "2.2.8",
"@rainbow-me/rainbowkit": "2.2.9",
"@tanstack/react-query": "^5.28.6",
"burner-connector": "workspace:*",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
"viem": "2.34.0",
"wagmi": "2.16.4"
"viem": "2.38.5",
"wagmi": "2.19.1"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
6 changes: 3 additions & 3 deletions packages/burner-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"typescript-eslint": "^7.7.1"
},
"dependencies": {
"@rainbow-me/rainbowkit": "2.2.8",
"viem": "2.34.0",
"wagmi": "2.16.4"
"@rainbow-me/rainbowkit": "2.2.9",
"viem": "2.38.5",
"wagmi": "2.19.1"
}
}
7 changes: 5 additions & 2 deletions packages/burner-connector/src/burnerConnector/burner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const burner = ({ useSessionStorage = false, rpcUrls = {} }: BurnerConfig
id: burnerWalletId,
name: burnerWalletName,
type: burnerWalletId,
async connect({ chainId } = {}) {
async connect({ chainId, withCapabilities } = {}) {
const provider = await this.getProvider();
const accounts = await provider.request({
method: "eth_accounts",
Expand All @@ -67,7 +67,10 @@ export const burner = ({ useSessionStorage = false, rpcUrls = {} }: BurnerConfig
currentChainId = chain.id;
}
connected = true;
return { accounts, chainId: currentChainId };
return {
accounts: (withCapabilities ? accounts.map((address) => ({ address, capabilities: {} })) : accounts) as never,
chainId: currentChainId,
};
},
async getProvider({ chainId } = {}) {
const targetChainId = chainId || connectedChainId;
Expand Down
Loading