Skip to content

Commit

Permalink
Fix ENS Registrar registration for Dapp dev
Browse files Browse the repository at this point in the history
  • Loading branch information
area committed May 1, 2024
1 parent 50f0ffe commit 69167af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/truffle-fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const {
setupEtherRouter,
} = require("../helpers/upgradable-contracts");
const { FORKED_XDAI_CHAINID, XDAI_CHAINID, UINT256_MAX, CREATEX_ADDRESS } = require("../helpers/constants");
const { getChainId, hardhatRevert, hardhatSnapshot, deployCreateXIfNeeded } = require("../helpers/test-helper");
const { getChainId, hardhatRevert, hardhatSnapshot, deployCreateXIfNeeded, isXdai } = require("../helpers/test-helper");

module.exports = async () => {
if (postFixtureSnapshotId) {
Expand Down Expand Up @@ -268,7 +268,9 @@ async function setupEnsRegistry() {
const colonyNetwork = await IColonyNetwork.at(colonyNetworkRouter.address);

const ensRegistry = await ENSRegistry.new();
await setupENSRegistrar(colonyNetwork, ensRegistry, accounts[0]);
const suffix = (await isXdai()) ? "colonyxdai" : "eth";

await setupENSRegistrar(colonyNetwork, ensRegistry, accounts[0], suffix);
}

async function setupMetaColony() {
Expand Down

0 comments on commit 69167af

Please sign in to comment.