We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e8fd89 commit 3f21445Copy full SHA for 3f21445
.changeset/good-corners-stare.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Emit accountChanged event when smart wallets switch chains
packages/thirdweb/src/wallets/smart/smart-wallet.ts
@@ -234,7 +234,8 @@ export function smartWallet(
234
// set the states
235
account = connectedAccount;
236
chain = connectedChain;
237
- emitter.emit("chainChanged", newChain);
+ emitter.emit("accountChanged", connectedAccount);
238
+ emitter.emit("chainChanged", connectedChain);
239
},
240
};
241
}
0 commit comments