Skip to content

Commit 10da7e7

Browse files
committed
update
1 parent f81c1af commit 10da7e7

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/components/platform-fees.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CommonPlatformFeeSchema = z.object({
3636
/**
3737
* platform fee basis points
3838
*/
39-
platform_fee_basis_points: BasisPointsSchema.default(0),
39+
platform_fee_basis_points: BasisPointsSchema,
4040
/**
4141
* platform fee recipient address
4242
*/
@@ -84,11 +84,6 @@ export const SettingsPlatformFees = ({
8484
action: "set-platform-fees",
8585
label: "attempt",
8686
});
87-
// In the v4 hook we defaulted recipient to address_zero and bps to `0`
88-
// but let's actually throw an error here for better transparency
89-
if (!data.platform_fee_basis_points) {
90-
return toast.error("Please enter valid basis points.");
91-
}
9287
if (!data.platform_fee_recipient) {
9388
return toast.error("Please enter a valid platform fee recipient.");
9489
}

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/components/royalties.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const CommonRoyaltySchema = z.object({
4646
* @internal
4747
* @remarks used by OpenSea "seller_fee_basis_points"
4848
*/
49-
seller_fee_basis_points: BasisPointsSchema.default(0),
49+
seller_fee_basis_points: BasisPointsSchema,
5050

5151
/**
5252
* The address of the royalty recipient. All royalties will be sent
@@ -97,11 +97,6 @@ export const SettingsRoyalties = ({
9797
action: "set-royalty",
9898
label: "attempt",
9999
});
100-
// In the v4 hook we defaulted recipient to address_zero and bps to `0`
101-
// but let's actually throw an error here for better transparency
102-
if (!d.seller_fee_basis_points) {
103-
return toast.error("Please enter valid basis points.");
104-
}
105100
if (!d.fee_recipient) {
106101
return toast.error("Please enter a valid royalty fee recipient.");
107102
}

0 commit comments

Comments
 (0)