Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fluffy-hats-wait.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-mice-do.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/preserve-nonce-zero.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/readonly-log-topic.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/resolve-access-key.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-games-prove.md

This file was deleted.

16 changes: 16 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# viem

## 2.48.2

### Patch Changes

- [#4526](https://github.com/wevm/viem/pull/4526) [`28fcb0d487ecc525d687201b4eb47136ace7f7b9`](https://github.com/wevm/viem/commit/28fcb0d487ecc525d687201b4eb47136ace7f7b9) Thanks [@mk0walsk](https://github.com/mk0walsk)! - Added OP Stack chain config to Zircuit.

- [#4520](https://github.com/wevm/viem/pull/4520) [`3e88a77f8eb92fa1ce4410ad14bdbab8f04cce4b`](https://github.com/wevm/viem/commit/3e88a77f8eb92fa1ce4410ad14bdbab8f04cce4b) Thanks [@pxrl](https://github.com/pxrl)! - Added Tron block time

- [`67d979c678c4835ace58c00e43eaf2291cd5764b`](https://github.com/wevm/viem/commit/67d979c678c4835ace58c00e43eaf2291cd5764b) Thanks [@jxom](https://github.com/jxom)! - Fixed `prepareTransactionRequest` to preserve `nonce: 0` instead of dropping it.

- [#4455](https://github.com/wevm/viem/pull/4455) [`c0c09a6adf8cafc75f3ace8b892e57f41538baa7`](https://github.com/wevm/viem/commit/c0c09a6adf8cafc75f3ace8b892e57f41538baa7) Thanks [@nikicat](https://github.com/nikicat)! - Fixed `LogTopic` type to accept readonly arrays.

- [`59b69da17293f626650f211f0129b7ccfdaf957d`](https://github.com/wevm/viem/commit/59b69da17293f626650f211f0129b7ccfdaf957d) Thanks [@jxom](https://github.com/jxom)! - Added `resolveAccessKey` to support alternative access key formats (`{ address, type }`, `{ publicKey, type }`) in addition to `{ accessKeyAddress, keyType }` for `signKeyAuthorization` and access key actions.

- [#4428](https://github.com/wevm/viem/pull/4428) [`30ac0cf8517a013d9869cf2a9c2a652c80abaf46`](https://github.com/wevm/viem/commit/30ac0cf8517a013d9869cf2a9c2a652c80abaf46) Thanks [@hashcashier](https://github.com/hashcashier)! - Replaced manual `extraData` decoding with `l2SequenceNumber()` contract call in `getGames`.

## 2.48.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/errors/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.48.1'
export const version = '2.48.2'
2 changes: 1 addition & 1 deletion src/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wevm/viem",
"version": "2.48.1",
"version": "2.48.2",
"exports": {
".": "./index.ts",
"./accounts-abstraction": "./account-abstraction/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "viem",
"description": "TypeScript Interface for Ethereum",
"version": "2.48.1",
"version": "2.48.2",
"type": "module",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand Down
15 changes: 12 additions & 3 deletions src/types/contract.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,10 @@ test('AbiEventParametersToPrimitiveTypes', () => {
>().toEqualTypeOf<
| readonly []
| readonly [string | readonly string[] | null]
| readonly [string | readonly string[] | null, number | readonly number[] | null]
| readonly [
string | readonly string[] | null,
number | readonly number[] | null,
]
>()

type Unnamed_AllowNonIndexed = AbiEventParametersToPrimitiveTypes<
Expand All @@ -392,7 +395,10 @@ test('AbiEventParametersToPrimitiveTypes', () => {
expectTypeOf<Unnamed_AllowNonIndexed>().toEqualTypeOf<
| readonly []
| readonly [string | readonly string[] | null]
| readonly [string | readonly string[] | null, number | readonly number[] | null]
| readonly [
string | readonly string[] | null,
number | readonly number[] | null,
]
| readonly [
string | readonly string[] | null,
number | readonly number[] | null,
Expand Down Expand Up @@ -427,6 +433,9 @@ test('AbiEventParametersToPrimitiveTypes', () => {
>().toEqualTypeOf<
| readonly []
| readonly [string | readonly string[] | null]
| readonly [string | readonly string[] | null, number | readonly number[] | null]
| readonly [
string | readonly string[] | null,
number | readonly number[] | null,
]
>()
})
Loading