github wevm/viem 1.0.0

latest releases: viem@2.21.10, viem@2.21.9, viem@2.21.8...
15 months ago

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 on Log now return a number instead of a bigint
  • #576 7d42767 Thanks @jxom! - Breaking: Removed ethersWalletToAccount 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! - Fixed getAbiItem from returning mismatched type when overload with different lengths.
  • #576 7d42767 Thanks @jxom! - Upgraded ENS Universal Resolver contract address.
  • #576 7d42767 Thanks @jxom! - Added support for labels larger than 255 bytes when resolving ENS names.
  • #576 7d42767 Thanks @jxom! - Added a strict parameter to getLogs, 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.
    When strict 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 the args property will be undefined (as we cannot decode these events).

Don't miss a new viem release

NewReleases is sending notifications on new releases.