Skip to content

Commit beee257

Browse files
committed
update copy, filter functions
1 parent b4a77ef commit beee257

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,6 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
522522

523523
return (
524524
<>
525-
<p className="mb-3 text-muted-foreground text-sm">
526-
A 2.5% minting fee is applied per primary sale at no cost to the
527-
contract deployer.
528-
</p>
529525
<FormProvider {...form}>
530526
<Flex
531527
flexGrow={1}

apps/dashboard/src/components/contract-components/contract-deploy-form/primary-sale-fieldset.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export const PrimarySaleFieldset: React.FC<PrimarySaleFieldsetProps> = (
2727
>
2828
<SolidityInput solidityType="address" {...props.register} />
2929
</FormFieldSetup>
30+
<p className="mb-3 pt-4 text-muted-foreground text-sm italic">
31+
A 2.5% platform fee is deducted from each primary sale price to support
32+
ongoing platform operations and improvements.
33+
</p>
3034
</Fieldset>
3135
);
3236
};

apps/dashboard/src/components/contract-functions/contract-function.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,14 @@ export const ContractFunctionsPanel: React.FC<ContractFunctionsPanelProps> = ({
286286
}) => {
287287
// TODO: clean this up
288288
const functionsWithExtension = useMemo(() => {
289-
const allFunctions = fnsOrEvents.filter((f) => f.type === "function");
289+
const allFunctions = fnsOrEvents
290+
.filter((f) => f.type === "function")
291+
.filter(
292+
(f) =>
293+
f.name !== "setPlatformFeeInfo" &&
294+
f.name !== "setFlatPlatformFeeInfo" &&
295+
f.name !== "setPlatformFeeType",
296+
);
290297
const results: ExtensionFunctions[] = [];
291298
results.push({
292299
extension: "",

0 commit comments

Comments
 (0)