Skip to content

Commit a181462

Browse files
fvictoriokanej
andauthored
Fix build with latest viem dependency (#5113)
* Fix build with latest viem dependency * chore: add changeset for the viem fix --------- Co-authored-by: John Kane <[email protected]>
1 parent 0486927 commit a181462

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/short-pillows-march.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/hardhat-viem": patch
3+
---
4+
5+
Fix to add guard for updated `TransactionReceipt` type in `viem`

packages/hardhat-viem/src/internal/contracts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function innerDeployContract(
8888
confirmations,
8989
});
9090

91-
if (contractAddress === null) {
91+
if (contractAddress === null || contractAddress === undefined) {
9292
const transaction = await publicClient.getTransaction({
9393
hash: deploymentTxHash,
9494
});

0 commit comments

Comments
 (0)