bugfix: vault creation loop

This commit is contained in:
Tim Olson
2023-12-27 16:35:16 -04:00
parent c0e2a34bc5
commit 5772696044

View File

@@ -96,6 +96,7 @@ async function createVault(chainId, owner, num) {
const signer = getSigner(chainId); const signer = getSigner(chainId);
const deployer = new ethers.Contract(chainInfo[chainId].factory, factoryAbi, signer) const deployer = new ethers.Contract(chainInfo[chainId].factory, factoryAbi, signer)
const vaultAddr = vaultAddress(chainId, owner, num) const vaultAddr = vaultAddress(chainId, owner, num)
console.log(' ==>', vaultAddr )
try { try {
const tx = await deployer.deployVault(owner, num) const tx = await deployer.deployVault(owner, num)
// console.log(`deploying vault for ${owner} #${num} with tx ${tx.hash}`) // console.log(`deploying vault for ${owner} #${num} with tx ${tx.hash}`)