File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/burner-connector/src/burnerConnector Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export const burner = ({ useSessionStorage = false, rpcUrls = {} }: BurnerConfig
5656 id : burnerWalletId ,
5757 name : burnerWalletName ,
5858 type : burnerWalletId ,
59- async connect ( { chainId } = { } ) {
59+ async connect ( { chainId, withCapabilities } = { } ) {
6060 const provider = await this . getProvider ( ) ;
6161 const accounts = await provider . request ( {
6262 method : "eth_accounts" ,
@@ -67,7 +67,10 @@ export const burner = ({ useSessionStorage = false, rpcUrls = {} }: BurnerConfig
6767 currentChainId = chain . id ;
6868 }
6969 connected = true ;
70- return { accounts, chainId : currentChainId } ;
70+ return {
71+ accounts : ( withCapabilities ? accounts . map ( ( address ) => ( { address, capabilities : { } } ) ) : accounts ) as never ,
72+ chainId : currentChainId ,
73+ } ;
7174 } ,
7275 async getProvider ( { chainId } = { } ) {
7376 const targetChainId = chainId || connectedChainId ;
You can’t perform that action at this time.
0 commit comments