fix: add missing `from` address to the `sendCalls` handler in mock connector
What does this PR do?
The mock connector's wallet_sendCalls handler reads the calls array received from the Viem sendCalls action function, but that function doesn't attach the from address inside the calls array, and instead sends it as a separate argument here. This causes all transactions sent from this handler in the mock connector to have the zero address as the from address.
This PR reads the from argument from the parameters and, if it exists, attaches it to the params sent to the eth_sendTransaction RPC request.
🦋 Changeset detected
Latest commit: 6e5c962d1c8c30a678a8b811f6c16471e41cf0f9
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 4 packages
| Name | Type |
|---|---|
| @wagmi/core | Patch |
| @wagmi/connectors | Patch |
| wagmi | Patch |
| @wagmi/vue | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| wagmi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 10, 2025 6:48pm |