Hi guys,
I used to deploy my contracts in my tests passing a specific account as owner:
const MyToken = artifacts.require("MyToken");
let erc20MyToken;
beforeEach(async function () {
erc20MyToken = await MyToken.new({from: accounts[6]});
}
Now I'm trying to make this contract upgradeable making use of OpenZeppelin plugin, but when I try to pass the object with the transaction's parameter, I got 'Invalid number of parameters for "initialize". Got 1 expected 0!':
const MyToken = artifacts.require("MyToken");
let erc20MyToken;
beforeEach(async function () {
erc20MyToken = await deployProxy(MyToken, [{from: accounts[6]}]);
}
How could I do it?
Regards,