Migration Guide
Major Changes
- #576
7d42767
Thanks @jxom! - Breaking (edge case):decodeEventLog
no 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
7d42767
Thanks @jxom! - Breaking:logIndex
&transactionIndex
onLog
now return anumber
instead of abigint
-
#576
7d42767
Thanks @jxom! - Breaking: RemovedethersWalletToAccount
adapter.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
af48368
Thanks @izayl! - FixedgetAbiItem
from returning mismatched type when overload with different lengths.
- #576
7d42767
Thanks @jxom! - Added support for labels larger than 255 bytes when resolving ENS names.
-
#576
7d42767
Thanks @jxom! - Added astrict
parameter togetLogs
,createEventFilter
&createContractEventFilter
.When
strict
mode is turned on, only logs that conform to the indexed/non-indexed arguments on the event definition/ABI (event
) will be returned.
Whenstrict
mode 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 theargs
property will beundefined
(as we cannot decode these events).