Truffle Upgrades: Error on deployProxy - TypeError: Found non-callable @@iterator

Hi @ialberquilla,

If you change the parameters of deployProxy to include an empty array (as you aren’t passing any parameters to an initialize function), then you should be able to deploy.

const { deployProxy } = require('@openzeppelin/truffle-upgrades');

const Traceability = artifacts.require("Traceability");

module.exports = async function (deployer) {
  const instance = await deployProxy(Traceability, [], { deployer, unsafeAllowCustomTypes: true });
  console.log('Deployed', instance.address);
};
1 Like