Skip to content

Commit

Permalink
Fix generate
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Dec 1, 2023
1 parent a1ff2d9 commit 98b60ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ const booleans = [true, false];
const blueprint = {
name: ['MyToken'],
symbol: ['MTK'],
baseUri: ['https://example.com/'],
enumerable: booleans,
uriStorage: booleans,
burnable: booleans,
pausable: booleans,
mintable: booleans,
incremental: booleans,
access: accessOptions,
upgradeable: upgradeableOptions,
info: infoOptions,
Expand Down
16 changes: 8 additions & 8 deletions packages/core-cairo/src/generate/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import path from 'path';
import crypto from 'crypto';

import { generateERC20Options } from './erc20';
// import { generateERC721Options } from './erc721';
// import { generateCustomOptions } from './custom';
import { generateERC721Options } from './erc721';
import { generateCustomOptions } from './custom';
import { buildGeneric, GenericOptions } from '../build-generic';
import { printContract } from '../print';
import { OptionsError } from '../error';
Expand All @@ -18,13 +18,13 @@ export function* generateOptions(): Generator<GenericOptions> {
yield { kind: 'ERC20', ...kindOpts };
}

// for (const kindOpts of generateERC721Options()) {
// yield { kind: 'ERC721', ...kindOpts };
// }
for (const kindOpts of generateERC721Options()) {
yield { kind: 'ERC721', ...kindOpts };
}

// for (const kindOpts of generateCustomOptions()) {
// yield { kind: 'Custom', ...kindOpts };
// }
for (const kindOpts of generateCustomOptions()) {
yield { kind: 'Custom', ...kindOpts };
}
}

interface GeneratedContract {
Expand Down

0 comments on commit 98b60ed

Please sign in to comment.