Skip to content

Commit

Permalink
Apply minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
immrsd committed Nov 27, 2024
1 parent 8b4037c commit f424d78
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core-cairo/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface Contract {
superVariables: Variable[];
}

export type Value = string | number | BigInt | { lit: string } | { note: string, value: Value };
export type Value = string | number | bigint | { lit: string } | { note: string, value: Value };

export interface Component {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/core-cairo/src/erc721.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export interface ERC721Options extends CommonContractOptions {
pausable?: boolean;
mintable?: boolean;
enumerable?: boolean;
royaltyInfo?: RoyaltyInfoOptions;
votes?: boolean;
royaltyInfo?: RoyaltyInfoOptions;
appName?: string;
appVersion?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core-cairo/src/generate/erc1155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const blueprint = {
pausable: booleans,
mintable: booleans,
updatableUri: booleans,
upgradeable: upgradeableOptions,
royaltyInfo: [royaltyInfoEnabled],
access: accessOptions,
upgradeable: upgradeableOptions,
info: infoOptions,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/cairo/ERC1155Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import type { KindedOptions, OptionsErrorMessages } from '@openzeppelin/wizard-cairo';
import { erc1155, infoDefaults } from '@openzeppelin/wizard-cairo';
import AccessControlSection from './AccessControlSection.svelte';
import AccessControlSection from './AccessControlSection.svelte';
import UpgradeabilityField from './UpgradeabilityField.svelte';
import RoyaltyInfoSection from './RoyaltyInfoSection.svelte';
import InfoSection from './InfoSection.svelte';
Expand Down
6 changes: 2 additions & 4 deletions packages/ui/src/cairo/RoyaltyInfoSection.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script lang="ts">
import HelpTooltip from '../HelpTooltip.svelte';
import type { OptionsErrorMessages } from '@openzeppelin/wizard-cairo';
import type { RoyaltyInfoOptions } from '@openzeppelin/wizard-cairo/src';
import HelpTooltip from '../HelpTooltip.svelte';
import { royaltyInfoDefaults } from '@openzeppelin/wizard-cairo';
import { error } from '../error-tooltip';
import type { RoyaltyInfoOptions } from '@openzeppelin/wizard-cairo/src';
export let opts: RoyaltyInfoOptions = royaltyInfoDefaults;
export let errors: undefined | OptionsErrorMessages;
Expand Down

0 comments on commit f424d78

Please sign in to comment.