File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
app/(dashboard)/published-contract/components
components/contract-components/contract-deploy-form Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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" ;
2424import { SolidityInput } from "contract-ui/components/solidity-inputs" ;
2525import { useTrack } from "hooks/analytics/useTrack" ;
2626import { 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,
You can’t perform that action at this time.
0 commit comments