zksync-ethers
Advanced tools
Comparing version 6.14.0 to 6.14.1
@@ -162,3 +162,4 @@ import { ethers, } from 'ethers'; | ||
const contractWithCorrectAddress = new ethers.Contract(deployedAddresses[deployedAddresses.length - 1], contract.interface.fragments, contract.runner); | ||
contractWithCorrectAddress.deploymentTransaction = () => contract.deploymentTransaction(); | ||
const deploymentTx = contract.deploymentTransaction(); | ||
contractWithCorrectAddress.deploymentTransaction = () => Object.assign(Object.create(Object.getPrototypeOf(deploymentTx)), deploymentTx, deployTxReceipt); | ||
return contractWithCorrectAddress; | ||
@@ -165,0 +166,0 @@ } |
@@ -166,3 +166,4 @@ "use strict"; | ||
const contractWithCorrectAddress = new ethers_1.ethers.Contract(deployedAddresses[deployedAddresses.length - 1], contract.interface.fragments, contract.runner); | ||
contractWithCorrectAddress.deploymentTransaction = () => contract.deploymentTransaction(); | ||
const deploymentTx = contract.deploymentTransaction(); | ||
contractWithCorrectAddress.deploymentTransaction = () => Object.assign(Object.create(Object.getPrototypeOf(deploymentTx)), deploymentTx, deployTxReceipt); | ||
return contractWithCorrectAddress; | ||
@@ -169,0 +170,0 @@ } |
{ | ||
"name": "zksync-ethers", | ||
"version": "6.14.0", | ||
"version": "6.14.1", | ||
"main": "build/index.js", | ||
@@ -78,3 +78,4 @@ "module": "build-esm/index.js", | ||
"access": "public" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
@@ -242,4 +242,10 @@ import { | ||
const deploymentTx = contract.deploymentTransaction()!; | ||
contractWithCorrectAddress.deploymentTransaction = () => | ||
contract.deploymentTransaction()!; | ||
Object.assign( | ||
Object.create(Object.getPrototypeOf(deploymentTx)), | ||
deploymentTx, | ||
deployTxReceipt | ||
) as ContractTransactionResponse; | ||
return contractWithCorrectAddress; | ||
@@ -246,0 +252,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5131914
134704