|
1 | 1 | # viem
|
2 | 2 |
|
| 3 | +## 2.24.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#3427](https://github.com/wevm/viem/pull/3427) [`2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7`](https://github.com/wevm/viem/commit/2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7) Thanks [@jxom](https://github.com/jxom)! - Stabilized EIP-7702. |
| 8 | + |
| 9 | + - Added `prepareAuthorization` and `signAuthorization` Actions to the Wallet Client. |
| 10 | + - Added `hashAuthorization`, `recoverAuthorizationAddress`, and `verifyAuthorization` Utilities. |
| 11 | + - Renamed `account.experimental_signAuthorization` to `account.signAuthorization`. |
| 12 | + |
| 13 | +- [#3427](https://github.com/wevm/viem/pull/3427) [`2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7`](https://github.com/wevm/viem/commit/2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7) Thanks [@jxom](https://github.com/jxom)! - **BREAKING (Experimental)**: Removed deprecated `walletActionsEip5792` export. Use `eip5792Actions` instead. |
| 14 | + |
| 15 | +- [#3427](https://github.com/wevm/viem/pull/3427) [`2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7`](https://github.com/wevm/viem/commit/2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7) Thanks [@jxom](https://github.com/jxom)! - **BREAKING (Experimental)**: Removed deprecated ERC-6492 exports in `viem/experimental`. These are no longer experimental. Use exports from `viem` instead. |
| 16 | + |
| 17 | +- [#3427](https://github.com/wevm/viem/pull/3427) [`2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7`](https://github.com/wevm/viem/commit/2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7) Thanks [@jxom](https://github.com/jxom)! - **BREAKING (Experimental)**: Removed deprecated `walletActionsErc7715` export. Use `erc7715Actions` instead. |
| 18 | + |
| 19 | +- [#3427](https://github.com/wevm/viem/pull/3427) [`2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7`](https://github.com/wevm/viem/commit/2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7) Thanks [@jxom](https://github.com/jxom)! - **BREAKING (Experimental)**: |
| 20 | + |
| 21 | + Removed EIP-7702 exports in `viem/experimental`. These are no longer experimental. Use exports from `viem` or `viem/utils` instead. |
| 22 | + |
| 23 | + Note, there is also a behavioral change in the stable EIP-7702 `signAuthorization` function. Previously, it was assumed that the signer of the Authorization was also the executor of the Transaction. This is no longer the case. |
| 24 | + |
| 25 | + If the signer of the Authorization is **NOT** the executor of the Transaction, you no longer need to pass a `sponsor` parameter. |
| 26 | + |
| 27 | + ```diff |
| 28 | + const eoa = privateKeyToAccount('0x...') |
| 29 | + const relay = privateKeyToAccount('0x...') |
| 30 | + |
| 31 | + const authorization = await client.signAuthorization({ |
| 32 | + account: eoa, |
| 33 | + contractAddress: '0x...', |
| 34 | + - sponsor: true |
| 35 | + }) |
| 36 | + |
| 37 | + const transaction = await client.sendTransaction({ |
| 38 | + account: relay, |
| 39 | + authorizationList: [authorization], |
| 40 | + }) |
| 41 | + ``` |
| 42 | + |
| 43 | + If the signer of the Authorization is **ALSO** the executor of the Transaction, you will now need to pass the `executor` parameter with a value of `'self'`. |
| 44 | + |
| 45 | + ```diff |
| 46 | + const eoa = privateKeyToAccount('0x...') |
| 47 | + |
| 48 | + const authorization = await client.signAuthorization({ |
| 49 | + account: eoa, |
| 50 | + contractAddress: '0x...', |
| 51 | + + executor: 'self', |
| 52 | + }) |
| 53 | + |
| 54 | + const transaction = await client.sendTransaction({ |
| 55 | + account: eoa, |
| 56 | + authorizationList: [authorization], |
| 57 | + }) |
| 58 | + ``` |
| 59 | + |
| 60 | +### Patch Changes |
| 61 | + |
| 62 | +- [#3469](https://github.com/wevm/viem/pull/3469) [`3f00c5f28e8a4eec0ee60fe3bb9acdc5e828d1c7`](https://github.com/wevm/viem/commit/3f00c5f28e8a4eec0ee60fe3bb9acdc5e828d1c7) Thanks [@danijelTxFusion](https://github.com/danijelTxFusion)! - **ZKSync Extension:** Added `deposit` action. |
| 63 | + |
| 64 | +- [#3497](https://github.com/wevm/viem/pull/3497) [`512ee19fdaf309d2ec607e024ecdb08ffbde5f68`](https://github.com/wevm/viem/commit/512ee19fdaf309d2ec607e024ecdb08ffbde5f68) Thanks [@DiRaiks](https://github.com/DiRaiks)! - Changed Hoodi block explorer to Etherscan. |
| 65 | + |
| 66 | +- [#3505](https://github.com/wevm/viem/pull/3505) [`c0f36abc39df5fc230c41871da1e7ba6a74d25eb`](https://github.com/wevm/viem/commit/c0f36abc39df5fc230c41871da1e7ba6a74d25eb) Thanks [@clemlak](https://github.com/clemlak)! - Added Multicall3 address to Ink Mainnet. |
| 67 | + |
| 68 | +- [#3506](https://github.com/wevm/viem/pull/3506) [`bce50f08acaa8355b11462487317929d958eb408`](https://github.com/wevm/viem/commit/bce50f08acaa8355b11462487317929d958eb408) Thanks [@CruzMolina](https://github.com/CruzMolina)! - add Multicall3 address to Ink Sepolia |
| 69 | + |
3 | 70 | ## 2.23.15
|
4 | 71 |
|
5 | 72 | ### Patch Changes
|
|
0 commit comments