Skip to content

Commit 8fe6473

Browse files
committed
fix filter
1 parent f8124c4 commit 8fe6473

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

apps/dashboard/src/app/(dashboard)/published-contract/components/publish-based-deploy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function DeployFormForPublishInfo(props: PublishBasedDeployProps) {
4848
publishedContractVersions[0];
4949

5050
const publishedContractNoFee = publishedContractVersions.find(
51-
(v) => ZERO_FEE_VERSIONS[v.name],
51+
(v) => v.version === ZERO_FEE_VERSIONS[v.name],
5252
);
5353

5454
if (!publishedContract) {

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
DEFAULT_FEE_RECIPIENT,
2121
THIRDWEB_PUBLISHER_ADDRESS,
2222
} from "constants/addresses";
23-
import { ZERO_FEE_CHAINS, ZERO_FEE_VERSIONS } from "constants/fee-config";
23+
import { ZERO_FEE_CHAINS } from "constants/fee-config";
2424
import { SolidityInput } from "contract-ui/components/solidity-inputs";
2525
import { useTrack } from "hooks/analytics/useTrack";
2626
import { useTxNotifications } from "hooks/useTxNotifications";
@@ -528,9 +528,7 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
528528
? JSON.parse(params.deployParams._trustedForwarders as string)
529529
: undefined,
530530
},
531-
version: isFeeExempt
532-
? ZERO_FEE_VERSIONS[metadata.name]
533-
: metadata.version,
531+
version: isFeeExempt ? "7.0.0" : metadata.version,
534532
});
535533
}
536534

@@ -565,9 +563,7 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
565563
account: activeAccount,
566564
chain: walletChain,
567565
client: thirdwebClient,
568-
deployMetadata: isFeeExempt
569-
? (metadataNoFee as FetchDeployMetadataResult)
570-
: metadata,
566+
deployMetadata: isFeeExempt && metadataNoFee ? metadataNoFee : metadata,
571567
initializeParams,
572568
implementationConstructorParams,
573569
salt,

0 commit comments

Comments
 (0)