Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Nov 30, 2023
1 parent fa35e11 commit 2f28ace
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions deploy/97_DEXEDAOMultiplier.migration.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const { Reporter } = require("@solarity/hardhat-migrate");
const config = require("./config/utils.js").getConfig();

const ERC1967Proxy = artifacts.require("ERC1967Proxy");
const DexeMultiplier = artifacts.require("DexeERC721Multiplier.sol");
const DexeMultiplier = artifacts.require("DexeERC721Multiplier");

module.exports = async (deployer) => {
let dexeMultiplier = await deployer.deploy(DexeMiltiplier);
let dexeMultiplier = await deployer.deploy(DexeMultiplier);
await deployer.deploy(ERC1967Proxy, [dexeMultiplier.address, "0x"], { name: "multiplierProxy" });

dexeMultiplier = await deployer.deployed(DexeMiltiplier, "multiplierProxy");
dexeMultiplier = await deployer.deployed(DexeMultiplier, "multiplierProxy");

await dexeMultiplier.__ERC721Multiplier_init("DeXe Multiplier NFT", "DEXE MULTNFT");
await dexeMultiplier.transferOwnership(deployer.dexeDaoAddress);

Expand Down
4 changes: 3 additions & 1 deletion test/gov/ERC721/DexeERC721Multiplier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { PRECISION } = require("../../../scripts/utils/constants");
const Reverter = require("../../helpers/reverter");
const truffleAssert = require("truffle-assertions");

const Proxy = artifacts.require("ERC1967Proxy");
const DexeERC721Multiplier = artifacts.require("DexeERC721MultiplierMock");
const GovPoolMock = artifacts.require("GovPoolMock");

Expand Down Expand Up @@ -61,9 +62,9 @@ describe("DexeERC721Multiplier", () => {

describe("upgradeability", () => {
beforeEach(async () => {
const Proxy = artifacts.require("ERC1967Proxy");
const proxy = await Proxy.new(nft.address, "0x");
dexeNft = await DexeERC721Multiplier.at(proxy.address);

dexeNft.__ERC721Multiplier_init(NFT_NAME, NFT_SYMBOL);
});

Expand All @@ -78,6 +79,7 @@ describe("DexeERC721Multiplier", () => {
it("could upgrade", async () => {
const nft1 = await DexeERC721Multiplier.new();
await dexeNft.upgradeTo(nft1.address);

assert.equal(await dexeNft.getImplementation(), nft1.address);
});
});
Expand Down

0 comments on commit 2f28ace

Please sign in to comment.