Skip to content

Commit

Permalink
fix getDeployTx bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbenny committed Feb 3, 2024
1 parent 53832ca commit 2bc7526
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions script/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ async function getDeployTx(contract) {
return await contract.deployTransaction.wait();
} else if (contract.deploymentTransaction !== undefined) {
// ethers v6
const deploymentTransaction = await contract.deploymentTransaction();
return await deploymentTransaction.getTransaction();
return contract.deploymentTransaction().wait();
} else {
return undefined;
}
Expand Down Expand Up @@ -120,15 +119,6 @@ class ChainContractDeployer {
console.log('deployer balance', this.hardhat.ethers.formatEther(balance));
}

// To avoid proxy name conflict with '@openzeppelin/contracts/proxy/Proxy.sol:Proxy'
getProxyContractName() {
if (this.zksync) {
return "cache-zk/solpp-generated-contracts/zksync/Proxy.sol:Proxy";
} else {
return "cache/solpp-generated-contracts/zksync/Proxy.sol:Proxy";
}
}

async deployContract(contractName, deployArgs) {
let contract;
if (this.zksync) {
Expand Down

0 comments on commit 2bc7526

Please sign in to comment.