Skip to content

Commit

Permalink
always deploy extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Jul 12, 2021
1 parent 8a1e583 commit 81cd500
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ module.exports = {
},
rinkeby: {
provider: function () {
let HDWalletProvider = require("@truffle/hdwallet-provider");

let infuraKey = process.env.INFURA_KEY;
let alchemyKey = process.env.ALCHEMY_KEY;

let HDWalletProvider = require("@truffle/hdwallet-provider");
let mnemonic = process.env.TRUFFLE_MNEMONIC;

let url;
if (alchemyKey) {
url = `wss://eth-rinkeby.ws.alchemyapi.io/v2/${alchemyKey}`;
Expand Down
4 changes: 2 additions & 2 deletions utils/TruffleUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const deployFunction = (deployer, daoArtifacts, allContracts) => {
if (
// Always deploy core and test contracts
contractConfig.type === ContractType.Core ||
contractConfig.type === ContractType.Extension ||
contractConfig.type === ContractType.Test
) {
return deploy(contractInterface, args);
Expand Down Expand Up @@ -93,9 +94,8 @@ const deployFunction = (deployer, daoArtifacts, allContracts) => {
const deployedContract = await deploy(contractInterface, args);

if (
// Add the new contract to DaoArtifacts, should not store Core & Test contracts
// Add the new contract to DaoArtifacts, should not store Core, Extension & Test contracts
contractConfig.type === ContractType.Factory ||
contractConfig.type === ContractType.Extension ||
contractConfig.type === ContractType.Adapter ||
contractConfig.type === ContractType.Util
) {
Expand Down

0 comments on commit 81cd500

Please sign in to comment.