Skip to content

Commit 09d43d3

Browse files
authored
Merge pull request #3682 from passportxyz/feature/disable-human-wallet
refactor: update initSilkWithEIP6963 to return an empty cleanup function
2 parents bf97845 + bc0d554 commit 09d43d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/utils/silkEIP6963.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ export function requestProviders(callback: (providerDetail: EIP6963ProviderDetai
148148
*/
149149
export function initSilkWithEIP6963(silkProvider: SilkEthereumProviderInterface): () => void {
150150
// Announce the provider via EIP-6963
151-
const cleanup = announceSilkProvider(silkProvider);
151+
// const cleanup = announceSilkProvider(silkProvider);
152152

153153
// Don't assign to window.ethereum - let users connect via EIP-6963 discovery
154154
// This prevents conflicts with other wallets
155155

156-
return cleanup;
156+
// return cleanup;
157+
158+
// Return empty cleanup function since we're not announcing the provider
159+
return () => {};
157160
}

0 commit comments

Comments
 (0)