diff --git a/src/utils.ts b/src/utils.ts index 3627062..1c595bc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -203,8 +203,8 @@ export async function saveContractWithCreate3Deployment( const receipt = await provider.getTransactionReceipt(deployTxHash) as {[key: string]: any}; if (receipt != null) { // conver ethers.TransactionReceipt object to hardhat-deploy.Receipt object - receipt.transactionHash = receipt.hash; - receipt.transactionIndex = receipt.index; + receipt.transactionHash = receipt.transactionHash || receipt.hash; + receipt.transactionIndex = receipt.transactionIndex || receipt.index; ['provider', 'blobGasPrice', 'type', 'root', 'hash', 'index'].forEach(key => delete receipt[key]); }