wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.17k stars 283 forks source link

Diamond Factory deployment fails #404

Closed iamonuwa closed 1 year ago

iamonuwa commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

When I attempt to deploy a diamond factory contract with hardhat, it throws this error TypeError: executionContract.populateTransaction[options.execute.methodName] is not a function

To Reproduce Steps to reproduce the behavior:

  1. The codesnippet below fails
...
await diamond.deploy("Factory", {
        from: deployer,
        owner: deployer,
        facets: [...facets],
        execute: {
            methodName: 'initialize',
            args: [
                diamondCut,
                diamondCut.address,
                init.address,
            ]
        },
        log: true
    })
  1. See error

Expected behavior A clear and concise description of what you expected to happen. Expect the contract to deploy successfully without error.

versions

Additional context Add any other context about the problem here.

iamonuwa commented 1 year ago

Solved this, closing this