Skip to content

[Snyk] Upgrade viem from 2.45.1 to 2.46.1#613

Merged
alessio merged 1 commit intomainfrom
snyk-upgrade-ddf12f83b1d9ae44f140e279a6ab26de
Mar 16, 2026
Merged

[Snyk] Upgrade viem from 2.45.1 to 2.46.1#613
alessio merged 1 commit intomainfrom
snyk-upgrade-ddf12f83b1d9ae44f140e279a6ab26de

Conversation

@hongtao023
Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to upgrade viem from 2.45.1 to 2.46.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 4 versions ahead of your current version.

  • The recommended version was released 21 days ago.

Release notes
Package name: viem from viem GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 9, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 770c3ffe-80a8-4a77-8db2-bd28e8396ba3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-upgrade-ddf12f83b1d9ae44f140e279a6ab26de

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alessio alessio merged commit d5b023e into main Mar 16, 2026
8 checks passed
@alessio alessio deleted the snyk-upgrade-ddf12f83b1d9ae44f140e279a6ab26de branch March 16, 2026 13:10
nksazonov pushed a commit that referenced this pull request Apr 16, 2026
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade viem from 2.45.1 to 2.46.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **4 versions** ahead of your current
version.

- The recommended version was released **21 days ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>viem</b></summary>
    <ul>
      <li>
<b>2.46.1</b> - <a
href="https://redirect.github.com/wevm/viem/releases/tag/viem%402.46.1">2026-02-16</a></br><h3>Patch
Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/wevm/viem/commit/44cbba75ab219c4e297f6cfd21c04f47548585e2"><code>44cbba75ab219c4e297f6cfd21c04f47548585e2</code></a>
Thanks <a href="https://redirect.github.com/jxom">@ jxom</a>! - Removed
Ekta chain.</li>
</ul>
      </li>
      <li>
<b>2.46.0</b> - <a
href="https://redirect.github.com/wevm/viem/releases/tag/viem%402.46.0">2026-02-15</a></br><h3>Minor
Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4304"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4304/hovercard">#4304</a> <a
href="https://redirect.github.com/wevm/viem/commit/b6b50d40fb6bbadc851377b74b2dd4da584958b0"><code>b6b50d40fb6bbadc851377b74b2dd4da584958b0</code></a>
Thanks <a href="https://redirect.github.com/jxom">@ jxom</a>! -
<strong>Breaking (<code>viem/tempo</code>):</strong> Renamed
<code>nonceKey: 'random'</code> to <code>nonceKey: 'expiring'</code> to
align with <a href="https://docs.tempo.xyz/protocol/tips/tip-1009"
rel="nofollow">TIP-1009</a> terminology.</p>
<p>TIP-1009 defines "expiring nonces" as time-based replay protection
using <code>validBefore</code> timestamps. The name
<code>'expiring'</code> better describes the mechanism than
<code>'random'</code>.</p>
<div class="highlight highlight-source-diff notranslate
position-relative overflow-auto"
data-snippet-clipboard-copy-content="await sendTransaction(client, {
  account,
- nonceKey: 'random',
+ nonceKey: 'expiring',
  to: '0x...',
})"><pre>await sendTransaction(client, {
  account,
<span class="pl-md"><span class="pl-md">-</span> nonceKey:
'random',</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> nonceKey:
'expiring',</span>
  to: '0x...',
})</pre></div>
</li>
</ul>
      </li>
      <li>
<b>2.45.3</b> - <a
href="https://redirect.github.com/wevm/viem/releases/tag/viem%402.45.3">2026-02-11</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4329"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4329/hovercard">#4329</a> <a
href="https://redirect.github.com/wevm/viem/commit/d12bb351c0b8c973b995583695606f9d083af1bb"><code>d12bb351c0b8c973b995583695606f9d083af1bb</code></a>
Thanks <a href="https://redirect.github.com/sakulstra">@ sakulstra</a>!
- Added multicall batching support for <code>getBalance</code> via
multicall3's <code>getEthBalance</code>. When the client has
<code>batch.multicall</code> enabled, <code>getBalance</code> calls are
now batched via <code>eth_call</code> instead of making individual
<code>eth_getBalance</code> RPC calls.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4333"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4333/hovercard">#4333</a> <a
href="https://redirect.github.com/wevm/viem/commit/71a324d6b98332f4f98e10c9de4d61287de8534a"><code>71a324d6b98332f4f98e10c9de4d61287de8534a</code></a>
Thanks <a href="https://redirect.github.com/kiyoakii">@ kiyoakii</a>! -
Added <code>blockCreated</code> field to MegaETH Mainnet and Testnet
multicall3 contract definitions.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4330"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4330/hovercard">#4330</a> <a
href="https://redirect.github.com/wevm/viem/commit/aab32a4a5eb3df06cdf8eab5d6f91259d438590b"><code>aab32a4a5eb3df06cdf8eab5d6f91259d438590b</code></a>
Thanks <a href="https://redirect.github.com/boredland">@ boredland</a>!
- Added <code>blockCreated</code> field to <code>zkSync</code>
multicall3 contract.</p>
</li>
</ul>
      </li>
      <li>
<b>2.45.2</b> - <a
href="https://redirect.github.com/wevm/viem/releases/tag/viem%402.45.2">2026-02-09</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4300"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4300/hovercard">#4300</a> <a
href="https://redirect.github.com/wevm/viem/commit/cc60e25ca55c022a56ed9e991ec23cb615593da6"><code>cc60e25ca55c022a56ed9e991ec23cb615593da6</code></a>
Thanks <a href="https://redirect.github.com/LXPDevs">@ LXPDevs</a>! -
Added LuxePorts chain.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4306"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4306/hovercard">#4306</a> <a
href="https://redirect.github.com/wevm/viem/commit/e3901661ba0442d6ae66c4d702396e8ee247d03f"><code>e3901661ba0442d6ae66c4d702396e8ee247d03f</code></a>
Thanks <a href="https://redirect.github.com/izharan-fireblocks">@
izharan-fireblocks</a>! - Added
<code>WalletConnectSessionSettlementError</code> as a non-retryable
transport error.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4301"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4301/hovercard">#4301</a> <a
href="https://redirect.github.com/wevm/viem/commit/662215f12310c3c2b17424093d3f4922693432f2"><code>662215f12310c3c2b17424093d3f4922693432f2</code></a>
Thanks <a href="https://redirect.github.com/xGreen-project">@
xGreen-project</a>! - Added XGR Mainnet chain.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4315"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4315/hovercard">#4315</a> <a
href="https://redirect.github.com/wevm/viem/commit/56d0920fd654ab93e89fff77769b0c982b8928d5"><code>56d0920fd654ab93e89fff77769b0c982b8928d5</code></a>
Thanks <a href="https://redirect.github.com/jxom">@ jxom</a>! - Fixed
<code>sendCallsSync</code> to respect client-level action overrides
(e.g. smart account clients).</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4294"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4294/hovercard">#4294</a> <a
href="https://redirect.github.com/wevm/viem/commit/8c3fa2684820c80e8908cc799fd47815594e4871"><code>8c3fa2684820c80e8908cc799fd47815594e4871</code></a>
Thanks <a href="https://redirect.github.com/Oighty">@ Oighty</a>! -
Added Citrea Mainnet chain support.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4321"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4321/hovercard">#4321</a> <a
href="https://redirect.github.com/wevm/viem/commit/059274e18c19270e7f7e98f0b087e7986d5a6dd7"><code>059274e18c19270e7f7e98f0b087e7986d5a6dd7</code></a>
Thanks <a href="https://redirect.github.com/highonrice">@
highonrice</a>! - Updated the native currency of Stable Mainnet.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4319"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4319/hovercard">#4319</a> <a
href="https://redirect.github.com/wevm/viem/commit/746f5ae3b220313748bf7e0eb2d86f07848b6628"><code>746f5ae3b220313748bf7e0eb2d86f07848b6628</code></a>
Thanks <a href="https://redirect.github.com/brotherlymite">@
brotherlymite</a>! - Added etherscan explorer for MegaETH.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4305"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4305/hovercard">#4305</a> <a
href="https://redirect.github.com/wevm/viem/commit/428ef7cd7b4d6e9860296df841ce2f4a8d494bc1"><code>428ef7cd7b4d6e9860296df841ce2f4a8d494bc1</code></a>
Thanks <a href="https://redirect.github.com/LxpSrDev">@ LxpSrDev</a>! -
Added LuxePorts chain.</p>
</li>
</ul>
      </li>
      <li>
<b>2.45.1</b> - <a
href="https://redirect.github.com/wevm/viem/releases/tag/viem%402.45.1">2026-01-29</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4273"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4273/hovercard">#4273</a> <a
href="https://redirect.github.com/wevm/viem/commit/bf3f117aa4d6a4693af29894b1c27e130623cbc7"><code>bf3f117aa4d6a4693af29894b1c27e130623cbc7</code></a>
Thanks <a href="https://redirect.github.com/nicodlz">@ nicodlz</a>! -
Added Subtensor EVM chain.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4272"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4272/hovercard">#4272</a> <a
href="https://redirect.github.com/wevm/viem/commit/a3a4ff9a25c8f31d3caef533d3d100cf22c1ea5e"><code>a3a4ff9a25c8f31d3caef533d3d100cf22c1ea5e</code></a>
Thanks <a href="https://redirect.github.com/matzapata">@ matzapata</a>!
- Added Alpen Testnet</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4228"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4228/hovercard">#4228</a> <a
href="https://redirect.github.com/wevm/viem/commit/26ffdfbef41e08a4d6837051eda615fb659c2c31"><code>26ffdfbef41e08a4d6837051eda615fb659c2c31</code></a>
Thanks <a href="https://redirect.github.com/sakulstra">@ sakulstra</a>!
- Improved performance in <code>parseEventLogs</code> by memoizing.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4275"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4275/hovercard">#4275</a> <a
href="https://redirect.github.com/wevm/viem/commit/ea8398b80c6fa90747e979d959c32e276bdd43e1"><code>ea8398b80c6fa90747e979d959c32e276bdd43e1</code></a>
Thanks <a href="https://redirect.github.com/GiovaniGuizzo">@
GiovaniGuizzo</a>! - Added KiiChain mainnet chain definition</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4259"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4259/hovercard">#4259</a> <a
href="https://redirect.github.com/wevm/viem/commit/1ae28c2a9acb55b8fc599643549a52ec71a02e72"><code>1ae28c2a9acb55b8fc599643549a52ec71a02e72</code></a>
Thanks <a href="https://redirect.github.com/cruzdanilo">@
cruzdanilo</a>! - Fixed error decoding in <code>simulateBlocks</code>
when RPC returns revert data in <code>returnData</code> instead of
<code>error.data</code>.</p>
</li>
<li>
<p><a href="https://redirect.github.com/wevm/viem/pull/4260"
data-hovercard-type="pull_request"
data-hovercard-url="/wevm/viem/pull/4260/hovercard">#4260</a> <a
href="https://redirect.github.com/wevm/viem/commit/1f2a1839c201a2f5b97bddf26d605fb0394cdbd7"><code>1f2a1839c201a2f5b97bddf26d605fb0394cdbd7</code></a>
Thanks <a href="https://redirect.github.com/akitothemoon">@
akitothemoon</a>! - Added Horizen Testnet.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/wevm/viem/commit/4fe411bd4231ec0a89159723ec68fcfe13c10071"><code>4fe411bd4231ec0a89159723ec68fcfe13c10071</code></a>
Thanks <a href="https://redirect.github.com/jxom">@ jxom</a>! - Added
<code>nonce</code> and <code>faucet.fundSync</code> actions to
decorator.</p>
</li>
</ul>
      </li>
    </ul>
from <a href="https://redirect.github.com/wevm/viem/releases">viem
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiJjMWRkNzkxZi04YWNkLTRkNTAtOGQxOS0xYTc5Nzk3YmU0ZDMiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImMxZGQ3OTFmLThhY2QtNGQ1MC04ZDE5LTFhNzk3OTdiZTRkMyJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf/settings/integration?pkg&#x3D;viem&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"viem","from":"2.45.1","to":"2.46.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"c1dd791f-8acd-4d50-8d19-1a79797be4d3","prPublicId":"c1dd791f-8acd-4d50-8d19-1a79797be4d3","packageManager":"npm","priorityScoreList":[],"projectPublicId":"6ec96c13-2fa1-4d2e-a2c9-55875479edaf","projectUrl":"https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":4,"publishedDate":"2026-02-16T02:28:36.614Z"},"vulns":[]}'

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants