Skip to content

Commit 0d600f4

Browse files
committed
fix(cli-typescript): useERC721C correct value
1 parent b87a816 commit 0d600f4

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

cli-typescript/src/utils/deployContract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
getImplId,
1919
getRegistryAddress,
2020
getStandardId,
21-
getUseERC721C,
2221
promptForConfirmation,
2322
} from './getters';
2423
import { ContractManager } from './ContractManager';
@@ -61,6 +60,7 @@ export const deployContract = async ({
6160
mintCurrency,
6261
contractManager: cm,
6362
totalTokens,
63+
useERC721C,
6464
}: DeployContractConfig) => {
6565
showText('Deploying a new collection...');
6666

@@ -69,7 +69,7 @@ export const deployContract = async ({
6969
const factoryAddress = getFactoryAddress(cm.chainId);
7070
const registryAddress = getRegistryAddress(cm.chainId);
7171
const standardId = getStandardId(tokenStandard);
72-
const useERC721C = getUseERC721C();
72+
console.log('useERC721C:🥶', useERC721C);
7373
const implId = getImplId(cm.chainId, tokenStandard, useERC721C);
7474

7575
const deploymentFee = await cm.getDeploymentFee(

cli-typescript/src/utils/getters.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,6 @@ export const getStandardId = (tokenStandard: TOKEN_STANDARD): string => {
298298
}
299299
};
300300

301-
export const getUseERC721C = (): boolean => {
302-
return process.env.USE_ERC721C === 'true' ? true : false;
303-
};
304-
305301
export const promptForConfirmation = async (
306302
message?: string,
307303
defaultValue?: boolean,

cli-typescript/src/utils/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export type DeployContractConfig = Collection & {
7474
contractManager: ContractManager;
7575
totalTokens?: number;
7676
stagesFile?: string;
77+
useERC721C?: boolean;
7778
};
7879

7980
export interface Log {

0 commit comments

Comments
 (0)