Skip to content

Commit

Permalink
Unify receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Jul 3, 2024
1 parent bd3a9d6 commit 7d6ad69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 7d6ad69

Please sign in to comment.