You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{buildModule}from"@nomicfoundation/hardhat-ignition/modules";importVaultFactoryfrom"./VaultFactory";importhrefrom"hardhat";consthex3=hre.ethers.toBeHex(3,20);constVaultFactory=buildModule("Vault",(m)=>{constvaultFactory=m.contract("VaultFactory");return{
vaultFactory,};});constUniswapV3Swapper=buildModule("UniswapV3Swapper2",(m)=>{constuniswapV3Swapper=m.contract("UniswapV3Swapper",[hex3]);return{
uniswapV3Swapper,};});// * NOTES: deployment with factory currently not working as expected.// * deployed address not stored in json file, and visualization throws errorexportdefaultbuildModule("Vault",(m)=>{const{ vaultFactory }=m.useModule(VaultFactory);const{ uniswapV3Swapper }=m.useModule(UniswapV3Swapper);return{
vaultFactory,
uniswapV3Swapper,};});
I suspect this is the reuse of the module id. Where the top level module has id Vault but so does one of its submodules.
We should add buildModule validation to cover this case.
The text was updated successfully, but these errors were encountered:
@maguroid reported an issue where visualization failed when running against this module:
https://github.com/maguroid/hardhat-ignition-demo/blob/factory-pattern/ignition/modules/Vault.ts
It appears to reduce down to:
I suspect this is the reuse of the module id. Where the top level module has id
Vault
but so does one of its submodules.We should add
buildModule
validation to cover this case.The text was updated successfully, but these errors were encountered: