Migration Guide
Major Changes
- #576
7d42767Thanks @jxom! - Breaking (edge case):decodeEventLogno longer attempts to partially decode events. If the log does not conform to the ABI (mismatch between the number of indexed/non-indexed arguments to topics/data), it will throw an error.
- #576
7d42767Thanks @jxom! - Breaking:logIndex&transactionIndexonLognow return anumberinstead of abigint
-
#576
7d42767Thanks @jxom! - Breaking: RemovedethersWalletToAccountadapter.This adapter was introduced when viem did not have Private Key & HD Accounts. Since 0.2, viem provides all the utilities needed to create and import Private Key & HD Accounts.
If you still need it, you can copy + paste the old implementation.
Patch Changes
- #657
af48368Thanks @izayl! - FixedgetAbiItemfrom returning mismatched type when overload with different lengths.
- #576
7d42767Thanks @jxom! - Added support for labels larger than 255 bytes when resolving ENS names.
-
#576
7d42767Thanks @jxom! - Added astrictparameter togetLogs,createEventFilter&createContractEventFilter.When
strictmode is turned on, only logs that conform to the indexed/non-indexed arguments on the event definition/ABI (event) will be returned.
Whenstrictmode is turned off (default), logs that do not conform to the indexed/non-indexed arguments on the event definition/ABI (event) will be included, but theargsproperty will beundefined(as we cannot decode these events).